Most of my package installs with Atom have been fine. However, some installs (such as beautify and build) fail every time, always with the same error:
firstname.lastname@example.org postinstall C:\Users\Mathew\AppData\Local\Temp\apm-install-dir-116018-264-1hazun4\node_modules\atom-beautify\node_modules\cross-spawn\node_modules\spawn-sync
Installing native dependencies (this may take up to a minute)
‘C:\Users\Mathew.atom.node-gyp\init.bat’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv “C:\Users\Mathew\AppData\Local\atom\app-1.4.0\resources\app\apm\bin\node.exe” “C:\Users\Mathew\AppData\Local\atom\app-1.4.0\resources\app\apm\node_modules\npm\bin\npm-cli.js” “–globalconfig” “C:\Users\Mathew\.atom\.apm\.apmrc” “–userconfig” “C:\Users\Mathew\.atom\.apmrc” “install” “C:\Users\Mathew\AppData\Local\Temp\d-116018-264-9d2b0p\package.tgz” “–target=0.34.5” “–arch=ia32” "–msvs_version=2015"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! email@example.com postinstall:
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org postinstall script ‘node postinstall’.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.
How can I fix this problem? I have already reinstalled atom, and the problems persists even without any other packages or settings.