Error installing gulp using nodejs on windows

2019-07-25 23:14发布

问题:

I am getting the following error while installing gulp using nodejs on my windows OS. The following is the error I get when I type:

npm install -g gulp

This is the output I get:

npm ERR! v8flags@1.0.1 install: `node fetch.js` 
npm ERR! spawn ENOENT 
npm ERR!
npm ERR! Failed at the v8flags@1.0.1 install script.
npm ERR! This is most likely a problem with the v8flags package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node fetch.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls v8flags
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "E:\\Program Files\\nodejs\\\\node.exe" "E:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp"
npm ERR! cwd C:\Users\pramod\Desktop
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0
标签: node.js gulp