dkalita
dkalita

Reputation: 1

Cordova installation issue on mac

I am facing a problem while installing Cordova on my iMac with the following errors.Kindly help:

npm ERR! Darwin 16.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 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 settings. 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! /Users/Ameya/npm-debug.log

Upvotes: 0

Views: 203

Answers (2)

Somnath
Somnath

Reputation: 406

Download Nodejs for MAC from https://nodejs.org/en/download/

Then use: sudo npm install -g npm-install

Upvotes: 0

Max Goh
Max Goh

Reputation: 55

I have encountered this issue myself when I was building an Ionic application. Can you try to uninstall npm and cordova entirely, and then reinstall it?

I got it working by doing that. Hopefully it worked for you.

Upvotes: 0

Related Questions