I was trying to instal Ionic framework in my Windows 8 system and was trying to install Cordova first.
I\'m getting this error while trying to install Cordova, that
npm config set registry "http://registry.npmjs.org"
Solved the issue for me. Note that it wouldn't accecpt a forward slash at the end of the url and it had to be entered exactly as shown above.
pls remove the
HTTP_PROXY HTTPS_PROXY proxy from the npmrc file
In my case artifactory was down. npm install command is throwing below error.
npm ERR! registry error parsing json
npm install -g @angular/cli --registry http://registry.npmjs.org/ worked for me
In my case, I had a very old version of npm. Upgrading npm using sudo npm install npm -g
fixed the problem for me. Additionally I also did rm -rf node_modules
and npm cache clean
and npm config set registry "http://registry.npmjs.org/"
My npm install
worked fine, but I had this problem with npm update
. To fix it, I had to run npm cache clean
and then npm cache clear
.