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

后端 未结 12 1168
感情败类
感情败类 2020-12-13 08:31

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

相关标签:
12条回答
  • 2020-12-13 09:17
    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.

    0 讨论(0)
  • 2020-12-13 09:20

    pls remove the

    HTTP_PROXY HTTPS_PROXY proxy from the npmrc file

    0 讨论(0)
  • 2020-12-13 09:21

    In my case artifactory was down. npm install command is throwing below error.

    npm ERR! registry error parsing json

    0 讨论(0)
  • 2020-12-13 09:24

    npm install -g @angular/cli --registry http://registry.npmjs.org/ worked for me

    0 讨论(0)
  • 2020-12-13 09:32

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

    0 讨论(0)
  • 2020-12-13 09:35

    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.

    0 讨论(0)
提交回复
热议问题