[英]Cannot npm install for angular-phonecat tutorial : Cannot find module 'update-notifier'
我在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
當我嘗試在Windows 10上下載有角度的種子項目時,我遇到了類似的問題。我安裝了GIT命令行。 然后,我使用GIT命令行下載項目,而不是下載ZIP。 git clone https:// YOURPORJECT。對於網絡問題,我輸入git config --global url。“ https://” .insteadOf git://。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.