我在angular-phonecat目录中运行npm install时遇到问题。我假设这可能是我的路径的问题,但不确定。任何见解都会非常感激。我一直收到错误:无法找到模块' update-notifier'。如果我单独安装,我将得到另一个丢失的模块。
$ which node
/usr/local/bin/node
$ which npm
/Users/Ashton/.node/bin/npm
export PATH="/usr/local/bin/node:$PATH" export PATH="$HOME/.node/bin:$PATH"
$ npm install > angular-phonecat@0.0.0 postinstall /Users/Ashton/Dropbox/Learning Projects/angular-phonecat > bower install module.js:340 throw err; ^ Error: Cannot find module 'update-notifier' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/Users/Ashton/Dropbox/Learning Projects/angular-phonecat/node_modules/.bin/bower:8:22) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) npm ERR! angular-phonecat@0.0.0 postinstall: `bower install` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the angular-phonecat@0.0.0 postinstall script. npm ERR! This is most likely a problem with the angular-phonecat package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! bower install npm ERR! You can get their info via: npm ERR! npm owner ls angular-phonecat npm ERR! There is likely additional logging output above. npm ERR! System Darwin 13.1.0 npm ERR! command "node" "/Users/Ashton/.node/bin/npm" "install" npm ERR! cwd /Users/Ashton/Dropbox/Learning Projects/angular-phonecat npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.7 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/Ashton/Dropbox/Learning Projects/angular-phonecat/npm-debug.log npm ERR! not ok code 0
答案 0 :(得分:0)
当我尝试在Windows 10上下载角度种子项目时,我遇到了类似的问题。我安装了GIT命令行。然后我使用GIT命令行下载项目,而不是下载ZIP。 git clone https://YOURPORJECT.For我在git config中输入的网络问题--global url。“https://”.insteadOf git://。