我想使用这个节点库:https://github.com/sudhirj/simply-deferred https://github.com/sudhirj/simply-deferred
I ran:
npm install simply-deferred
并将其添加到依赖项下的 package.json 中。
"simply-deferred": "*"
就安装成功了:
> require ("simply-deferred")
{ Deferred: [Function],
when: [Function],
installInto: [Function] }
但它没有添加到vendor.js,当我运行 require("simply-deferred") 时,它说找不到模块(即使我手动将js文件添加到/vendors)。
我是 npm/node 初学者。
您不能在 brunch 应用程序中需要 NPM 模块。从网站:
Brunch 是一个 HTML5 应用程序组装器
npm 是 Node.js 包管理器。 Brunch 是 HTML5 应用程序构建器。不同的东西。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)