2015-08-15 82 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