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
Steps you should do:
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With