【问题标题】:How do I include dependencies for dr.js?如何包含 dr.js 的依赖项?
【发布时间】:2015-04-01 15:28:28
【问题描述】:

我正在尝试安装 dr.js 作为我的 javascript 文档。 这是一个链接:https://www.versioneye.com/nodejs/dr.js/0.1.1

我使用 node.js 和 npm,所以我安装了。 我可以看到有依赖关系。这些是什么?我该如何处理依赖项?有谁知道如何安装 dr.js?

如何包含依赖项?

我做到了

npm install dr.js@0.1.1

我得到了

dr.js@0.1.1 ../node_modules/dr.js
├── eve@0.5.0
├── dot@1.0.3
├── markdown@0.5.0 (nopt@2.1.2)
└── topcoat@0.7.5 (topcoat-utils@0.1.3, topcoat-range-base@0.0.3, topcoat-list@0.5.0, topcoat-textarea@0.3.0, topcoat-switch-base@0.1.0, topcoat-search-input-base@0.1.2, topcoat-tab-bar@0.1.0, topcoat-radio-button-base@0.1.1, topcoat-input-base@0.4.1, topcoat-checkbox-base@0.1.3, topcoat-checkbox@0.4.0, topcoat-notification@0.1.1, topcoat-icon-button@0.3.4, topcoat-button-bar-base@0.1.5, topcoat-notification-base@0.0.1, topcoat-textarea-base@0.3.2, topcoat-button-base@0.6.1, topcoat-list-base@0.4.1, topcoat-button-bar@0.1.1, topcoat-radio-button@0.1.2, topcoat-text-input@0.3.4, topcoat-theme@0.5.24, topcoat-search-input@0.3.3, topcoat-button@0.5.5, topcoat-switch@0.1.4, topcoat-range@0.1.0, topcoat-navigation-bar-base@0.4.0, topcoat-navigation-bar@0.4.2)

这个输出是什么意思?这是否意味着安装完成? 我对 node.js 和 npm 很陌生..

【问题讨论】:

    标签: node.js dependencies npm


    【解决方案1】:

    这意味着您在 node_modules 目录中安装了 dr.js 及其依赖项。如果你打开你的 dr.js 目录,你会看到 node_modules 文件夹,其中安装了它的依赖项,例如 dot、markdown。

    以下将安装最新版本:

    npm install dr.js
    

    这将安装 0.1.1 版:

    npm install dr.js@0.1.1
    

    【讨论】:

      猜你喜欢
      • 2014-04-04
      • 1970-01-01
      • 2019-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-03
      相关资源
      最近更新 更多