2015-11-08 49 views
1

下面是錯誤消息:而對角phonecat目錄下運行「故宮安裝」得到了一個錯誤

 
> [email protected] postinstall D:\prem\angular\angular-phonecat 
> bower install 
bower ENOGIT  git is not installed or not in the PATH 
npm ERR! Windows_NT 6.1.7600 
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs 
\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v0.12.4 
npm ERR! npm v2.10.1 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] postinstall: `bower install` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'bower install' 
.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! Please include the following file with any support request: 
npm ERR!  D:\prem\angular\angular-phonecat\npm-debug.log 

回答

0

你不會有你的機器上安裝GIT。另請參閱:cannot start angular-phonecat, postinstall script failing

我不能將其標記爲重複,因爲答案在其他問題上不被接受。

+0

但我已經安裝了git,它可以用於其他任務 –

+0

也許它不在路徑中。在你的日誌中很清楚:'bower ENOGIT git沒有安裝或者沒有安裝在PATH中' –

+0

好的,你可以看到angular-phonecat是我的根目錄。如果這是錯誤的路徑,我應該在哪裏安裝。請幫我這是在殺我。 –

相關問題