install-npm-packages.js
var exec = require('child_process').exec;
console.log("Installing NPM packages");
exec('npm install',
function (error, stdout, stderr) {
if (error !== null) {
console.error("ERROR installing NPM packages", error);
}
else {
console.error("Successfully installed NPM packages", stdout, stderr);
}
});