Reputation: 28184
I would like to use this node library: https://github.com/sudhirj/simply-deferred
I ran:
npm install simply-deferred
And added it to package.json under dependencies.
"simply-deferred": "*"
It installed successfully:
> require ("simply-deferred")
{ Deferred: [Function],
when: [Function],
installInto: [Function] }
But it is not added to vendor.js, and when I run require("simply-defered"), it says module not found (even when I manually added the js file to /vendors).
I am a npm/node beginner.
Upvotes: 4
Views: 588
Reputation: 1960
You cannot require NPM modules in brunch app. From the site:
Brunch is a HTML5 application assembler
npm is node.js package manager. Brunch is HTML5 app builder. Different stuff.
Upvotes: 1