exec-npm-install
Calls npm install in a child_process to prevent npm to take too much memory
Usage
var execNpmInstall = ; var options = // modules to install modules: 'kevoree-node-javascript' 'kevoree-comp-ticker' 'kevoree-group-ws' // install path (nb. '/path/to/somewhere' => '/path/to/somewhere/node_modules') prefix: '/path/to/somewhere'; ;
NB. When you specify a
prefix
,npm
will always append to it thenode_modules
folder.