When installing PhoneGap with node.js, I get the above error. I am running the node.js command prompt as an administrator. Here is the complete list of errors from the log:
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 ]
I added my path to git.exe to the nodevars.bat file, and when I type 'git' on the node.js cmd screen, I get a usage response (proving that git is on the way).
This is a brand new car, so I'm probably missing something, but I can't figure that out.
Edit: more details - I am using Windows 8.1 and I am using the "Node.js command prompt" (window title). I follow the instructions from here: 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 =] []