2015-08-15 64 views
0

我試圖安裝Phonegap
所以我在命令提示符下Phonegap安裝

npm install -g phonegap 

運行的命令,但它引發的錯誤,如GIT沒有找到,但我已經安裝了GIT

請在下面的錯誤提示。提前致謝。

C:\Users\bellamks>npm install -g phonegap 

npm WARN addRemoteGit Error: not found: git 

npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a 
problem with npm itself. npm ERR! Please check if you have git 
installed and in your PATH. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\bellamks\npm-debug.log 
+0

如果您輸入'git'並在命令行中輸入,會發生什麼? – msandiford

+0

C:\ Users \ bellamks> git 'git'不被識別爲內部或外部命令, 可操作的程序或批處理文件。 – Sreeni

+0

檢查'PATH'環境變量中是否存在'git'可執行文件路徑。 – gzc

回答

0

添加混帳到PATH最簡單的方法是將其解壓縮(任何你想要的)PortableGit-2.4.6-5th-release-candidate-64-bit.7z.exe

將​​加到您的%PATH%。 (請參閱「Adding directory to PATH Environment Variable in Windows」)

+0

安裝phoegap時得到了這個錯誤,請幫助這個「錯誤:0906D06C:PEM例程:PEM_read_bio:沒有啓動線」 – Sreeni

+0

@Sreeni會幫助嗎? https://github.com/npm/npm/issues/7672 – VonC

+0

@Sreeni但首先,我的建議是否幫助解決了原始問題(關於git的問題)?如果是,請接受答案(http://stackoverflow.com/help/accepted-answer),並提出一個新問題。 – VonC