在命令提示符的Andr​​oid PhoneGap的安装 - 错误:EPERM,错误号:50错误、命令提示符、Andr、PhoneGap

2023-09-05 01:03:26 作者:爱到伤肺

是新来这个PhoneGap的应用程序开发时,我试图安装的PhoneGap与安装( http://phonegap.com/install / )从命令提示符下引导该说,我更多的错误 像

Am new to this PhoneGap application development when i tried to install phonegap with install (http://phonegap.com/install/) guide from command prompt this says me more error like

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.1.7601
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:\
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ENOGIT
npm ERR! Error: EPERM, open 'C:\npm-debug.log'
npm ERR!  { [Error: EPERM, open 'C:\npm-debug.log'] errno: 50, code: 'EPERM', pa
th: 'C:\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.1.7601
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:\
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\npm-debug.log' npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\npm-debug.log
npm ERR! not ok code 0

凡为我安装的Git以及偏偏​​这个错误出现?并且有安装和PhoneGap的工作,任何其他方式?

Where as i install Git as well but why this error comes ? and is there any other way to install and work on phonegap ?

推荐答案

按照以下步骤操作:

下载并安装 Node.js的。安装之后,你应该能够调用在命令行上的节点和NPM。 下载并安装混帐客户端的,如果你不已经有一个。安装之后,你应该能够调用在命令行的git。 使用node.js中的NPM工具安装科尔多瓦模块科尔多瓦模块将自动故宫工具进行下载。 Download and install Node.js. Following installation, you should be able to invoke node and npm on your command line. Download and install a git client, if you don't already have one. Following installation, you should be able to invoke git on your command line. Install the cordova module using npm utility of Node.js. The cordova module will automatically be downloaded by the npm utility.

在OS X和Linux: $ sudo的NPM安装-g科尔多瓦

On OS X and Linux: $ sudo npm install -g cordova

在Windows上: C:\> NPM安装-g科尔多瓦

On Windows: C:\>npm install -g cordova

来源: PhoneGap的文档