Node.js phonegap npm安装错误

Node.js phonegap npm安装错误,node.js,cordova,Node.js,Cordova,我正在安装电话。 在phone gap的网站上显示了命令和说明。 我安装了nodejs并执行了命令。 但结果是错误的 我试过了 你能给我一个循序渐进的指导吗? 我已经下载了phonegap.zip 我该把这个放在哪里 C:\Program Files\nodejs>npm install -g phonegap npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely

我正在安装电话。 在phone gap的网站上显示了命令和说明。 我安装了nodejs并执行了命令。 但结果是错误的

我试过了

你能给我一个循序渐进的指导吗? 我已经下载了phonegap.zip 我该把这个放在哪里

C:\Program Files\nodejs>npm install -g phonegap
npm ERR! 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! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ENOGIT
npm ERR! Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log'
npm ERR!  { [Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: 'C:\\Program Files\\nodejs\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Program Files\nodejs\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\Program Files\nodejs\npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0

我安装了GIT,它成功了