Reputation: 917
I ran npm insall lodash but I can't find the lodash.js file to include in the browser. I realize I can just download lodash.js but I would prefer to use npm if possible.
Upvotes: 0
Views: 1817
Reputation: 917
Newer versions of lodash packages replace lodash.js with index.js. Use node_modules/lodash/index.js.
Upvotes: 2
Reputation: 2204
npm installs all of the modules in to the node_modules
folder. So you'd find lodash in ./node_modules/lodash/
If you're using browserify, you don't need to worry about that location as you can simply var _ = require('lodash');
and browserify will take care of the files for you.
More info on Browserify at: http://browserify.org/
Upvotes: 0