const json = JSON.parse(require('fs').readFileSync("package.json")); require('child_process').spawn('npm', ['i', '-D', ...Object.keys(json.devDependencies)], {stdio: 'inherit', detached: true}); //require('child_process').spawn('npm', ['i', '-D', ...Object.keys(json.dependencies)], {stdio: 'inherit', detached: true});
199000cookie-checkUpdate all NPM packages to the latest version