Skip to content

Instantly share code, notes, and snippets.

@jammycakes
jammycakes / deps.js
Created Feb 28, 2012
Node.js script to install dependencies using npm
View deps.js
var child_process = require('child_process');
function install(modules, callback) {
if (modules.length == 0) {
if (callback) callback(null);
return;
}
var module = modules.shift();
child_process.exec(
'npm install ' + module,