I get the following error in npm when I run npm install -g @vue/cli
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@vue\cli\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! file cmd npm ERR! path cmd npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn cmd npm ERR! [email protected] postinstall:
node scripts/postinstall
npm ERR! spawn cmd ENOENT npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Danijel\AppData\Roaming\npm-cache_logs\2018-09-24T12_48_07_8Z-debug.log
Can anyone help me solve this error?
2018-09-24T12_48_07_8Z-debug.log
as instructed. – ceejayozchild_process.spawn
does not work withnpm run scripts
on windows github.com/nodejs/node/issues/3675 – DogBot