I am about to do a large project with node.js and currently try sort a few things out.
In earlier node projects I had an extra folder for all node modules I used. This folder was ignored by git and I managed version and updates via git submodules, which was not easy (no dependencies, updating to new version was not always fun.)
What I am looking for is:
npm install packagename
npm dump_modules_into_file
So everyone else who is involved in this project could do:
npm install_or_update_modules_from_file
I don not want to have node_modules
tracked by my git repository. Basically I want something similar to how symonfy2 handles it bundles.
P.S.: I know about npm submodule packagename
, but this command is not very helpful because it does not install dependencies and it does not update the modules.
P.S.2: I ready about the package.json
, but this also has some flaws. (No parameters and you have to update module versions by hand.)
package.json
has no parameters?" – Jesse Fulton Feb 8 '12 at 2:31npm install mongodb --mongodb:native
. I have not figured out how to pass this native part to npm when using apackage.json
. – TheHippo Feb 8 '12 at 11:39