【问题标题】:phonegap npm install errorphonegap npm 安装错误
【发布时间】:2014-08-15 18:43:45
【问题描述】:

我正在安装电话间隙。 在电话间隙网站中,它显示命令和说明。 我安装了nodejs并执行了命令。 但是导致了错误。

我试过了 Node.js NPM error when installing PhoneGap on Windows 8

你能给出一步一步的指导吗? 我已经下载了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

【问题讨论】:

    标签: node.js cordova


    【解决方案1】:

    我安装了 GIT 并且成功了!

    【讨论】:

      猜你喜欢
      • 2014-07-27
      • 2015-01-29
      • 2015-04-27
      • 2014-08-20
      • 2023-03-30
      • 2012-02-09
      • 2022-01-10
      • 2016-04-03
      相关资源
      最近更新 更多