install-npm-packages.js

13 lines | 364 B Blame History Raw Download
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);
        }
    });