I\'m trying to get spawn to effect an rm -rf node_modules followed by npm install (on windows 7; nx commands courtesy of a tr
spawn
rm -rf node_modules
npm install
Use full path for the process, like:
var cmd = require('child_process').spawn("C:\\windows\\system32\\cmd.exe");