const json = JSON.parse(require('fs').readFileSync("package.json")); require('child_process').spawn('npm.cmd', ['i', '-D', ...Object.keys(json.devDependencies).map(x => `${x}@latest`)], {stdio: 'inherit', detached: true});