Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! Windows_NT 6.3.9600, unable to install cordova in windows8

I tried to install cordova on my windows8 machine by using the below command in command prompt

npm install -g cordova

but i'm not able to install because of the following error can any one help me out please.

Error:

npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs \node_modules\npm\bin\npm-cli.js" "install" "-g" "cordova" npm ERR! node v0.12.1 npm ERR! npm v2.5.1 npm ERR! code ECONNRESET

npm ERR! network tunneling socket could not be established, cause=getaddrinfo EN OTFOUND proxy npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settin gs. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\miracle\npm-debug.log

like image 969
praveen gogula Avatar asked May 11 '15 15:05

praveen gogula


2 Answers

Steps you should do:

  1. npm cache clean

2.Bring back the node version to v0.10.36 as suggested that the latest version of node may not be compatible for the new cli for window users.

3.Run the node cli or cmd in admin mode

4.npm install -g cordova

like image 104
Darcey Mckelvey Avatar answered Sep 19 '22 02:09

Darcey Mckelvey


I'm using node:0.12.5, npm:2.12.0. I got the same problem, and my simple solution was just use this command:

npm cache clean

and then use the installation command for your package, in this case

npm install -g cordova
like image 34
Huy Tran Avatar answered Sep 20 '22 02:09

Huy Tran