gulp.js安装麻烦,找不到模块'fetch.js'?

我做了一个npm安装,它只在我的文件夹中生成了一个node_modules文件夹,其中只有一个gulp-livereload子文件夹。 我的package.json具有以下devDependencies:

..... "devDependencies": { "gulp": "^3.8.8", "gulp-livereload": "^2.1.1" } } 

当进行npm安装/更新时,它不会生成gulp文件夹,同时也给我错误信息:

 > v8flags@1.0.1 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! v8flags@1.0.1 install: `node fetch.js` npm ERR! Exit status 8 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.2.9200 npm ERR! command "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 

任何帮助表示赞赏。 我对nodejs很陌生。

看来新的版本(3.8.9)与v8flags不兼容。 尝试改变package.json

  .....
    “devDependencies”:{
    “吞咽”:“3.8.8”,
    “gulp-livereload”:“^ 2.1.1”
  }
 } 

如果3.8.8不起作用,3.8.7为我工作。

是的,改变吞咽3.8.8也帮助我。

我也安装了gulp 3.8.8,现在一切正常。

 npm install -g gulp@3.8.8 npm install gulp@3.8.8