4

我想使用这个节点库:https ://github.com/sudhirj/simply-deferred

我跑了:

npm install simply-deferred

并将其添加到依赖项下的 package.json 中。

"simply-deferred": "*"

它安装成功:

> require ("simply-deferred")
{ Deferred: [Function],
  when: [Function],
  installInto: [Function] }

但是它没有添加到vendor.js,当我运行require(“simply-defered”)时,它说找不到模块(即使我手动将js文件添加到/vendors)。

我是一个 npm/node 初学者。

4

1 回答 1

1

您不能在早午餐应用程序中要求 NPM 模块。从网站:

Brunch 是一个 HTML5 应用程序组装器

npm 是 node.js 包管理器。Brunch 是 HTML5 应用程序构建器。不同的东西。

于 2013-07-02T07:38:31.873 回答