As of npm 1.0 (which is now what you get by default if you follow the steps in the README file), “bundle” is no longer a segregated thing — it’s just “how it works”.
So:
- Put a
package.jsonfile in the root of your project -
List your deps in that file
{ "name" : "my-project" , "version" : "1.0.0" , "dependencies" : { "express" : "1.0.0" } } -
npm installSince you’re calling this with no args, and not in global mode, it’ll just install all your deps locally. require("express")and be happy.