Installing Android phone phone on the command line - Error: EPERM, errno: 50

I am new to this development of the PhoneGap application, when I tried to install the phone bundle with the installation ( http://phonegap.com/install/ ) from the command line, it tells 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 

Where do I install Git, but why does this error occur? and is there any other way to establish and work with telephone communications?

0
git android cordova phonegap-plugins
source share
1 answer

Follow these steps:

  • Download and install Node.js. After installation, you should be able to call node and npm on the command line.
  • Download and install the git client if you do not already have it. After installation, you can invoke git on the command line.
  • Install the cordova module using npm Node.js. The cordova module will be automatically loaded by the npm utility.

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

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

Source: Phonegap Docs

+3
source share

All Articles