安装PhoneGap得到“错误未find:git”

使用node.js安装PhoneGap时,出现上述错误。 我以Admin身份运行Node.js命令提示符。 以下是日志中的错误的完整列表:

370 error not found: git 371 error Failed using git. 371 error This is most likely not a problem with npm itself. 371 error Please check if you have git installed and in your PATH. 372 error System Windows_NT 6.2.9200 373 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap" 374 error cwd C:\Windows\System32 375 error node -v v0.10.28 376 error npm -v 1.4.9 377 error code ENOGIT 378 verbose exit [ 1, true ] 

我已经将path添加到git.exe到nodevars.bat文件,当我在node.js cmd屏幕上键入'git'时,我得到了useage响应(certificategit在path中)。

这是一个全新的机器,所以我可能忽略了一些东西,但是我无法弄清楚是什么。

编辑:更多信息 – 我正在使用Windows 8.1,我正在使用“Node.js命令提示符”(窗口上的标题)。 我正在按照这里的说明: http : //phonegap.com/install/

当我在提示符下键入git时,我得到:
C:\ Windows \ System32> git用法:git [–version] [–help] [-c name = value] [–exec-path [=]] [–html-path] [–man-path] [–info-path] [-p | –paginate | –no-pager] [–no-replace-objects] [–bare] [–git-dir =] [–work- tree =] [–namespace =] []

在重新启动并尝试其他的事情之后,似乎npm脚本的某些部分没有findgit。 我打开Git Shell并从那里运行命令。 它安装。

我有同样的问题,但我安装了以前的版本,它的工作。 试试这个:npm install -g phonegap@3.4

在我的cygwin上安装git后,我也可以安装它。 cigwin / bin在我的PATH中,所以在windows cmd上安装phonegap@3.5不是问题。