npm ERR! registry error parsing json – While trying to install Cordova for Ionic Framework in Windows 8

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/"

Leave a Comment