admin管理员组文章数量:1317915
I did an npm install and it generated a node_modules folder on my folder with only a gulp-livereload subfolder in it. My package.json has the following devDependencies:
.....
"devDependencies": {
"gulp": "^3.8.8",
"gulp-livereload": "^2.1.1"
}
}
When doing npm install/update, it is not generating the gulp folder and also giving me the error message:
> [email protected] install C:\Users\SLowe\node_modules\gulp\node_modules\v8flags
> node fetch.js
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\SYoung\fetch.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm ERR! [email protected] install: `node fetch.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] 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.2.9200
npm ERR! mand "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "--save-dev" "gulp"
npm ERR! cwd C:\Users\SYoung
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Any help is appreciated. I am very new to nodejs.
I did an npm install and it generated a node_modules folder on my folder with only a gulp-livereload subfolder in it. My package.json has the following devDependencies:
.....
"devDependencies": {
"gulp": "^3.8.8",
"gulp-livereload": "^2.1.1"
}
}
When doing npm install/update, it is not generating the gulp folder and also giving me the error message:
> [email protected] install C:\Users\SLowe\node_modules\gulp\node_modules\v8flags
> node fetch.js
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\SYoung\fetch.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm ERR! [email protected] install: `node fetch.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] 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.2.9200
npm ERR! mand "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "--save-dev" "gulp"
npm ERR! cwd C:\Users\SYoung
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Any help is appreciated. I am very new to nodejs.
Share Improve this question edited Oct 27, 2014 at 16:55 user3757305 asked Oct 27, 2014 at 16:49 user3757305user3757305 1792 silver badges13 bronze badges 1- See github./gulpjs/gulp/issues/774 – jedmao Commented Nov 17, 2014 at 19:33
2 Answers
Reset to default 7It seems that the new gulp release (3.8.9) isn't patible with v8flags. Try changing the package.json to
..... "devDependencies": { "gulp": "3.8.8", "gulp-livereload": "^2.1.1" } }
If 3.8.8 doesn't work, 3.8.7 worked for me.
Yes, changing gulp to 3.8.8 helped me too.
I also installed gulp 3.8.8 and everything is now working fine.
npm install -g [email protected]
npm install [email protected]
本文标签: javascriptGulpjs trouble installingcannot find module 39fetchjs39Stack Overflow
版权声明:本文标题:javascript - Gulp.js trouble installing, cannot find module 'fetch.js'? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742024048a2415209.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论