npm WARN registry Unexpected warning for https://registry.npmjs.org/:

前端 未结 6 2314
独厮守ぢ
独厮守ぢ 2021-02-11 07:31

guys I am facing a strange problem here that my git-bash and my terminal when I am trying to use npm install I git this error my error message

some guy told me to clear

相关标签:
6条回答
  • 2021-02-11 08:19

    I got this error when I try to install prisma globally, I solved this

    1> npm cache clear --force

    2> npm install npm

    0 讨论(0)
  • 2021-02-11 08:23

    If the answers above didn't help, please try also to run sudo npm install. Sometimes you just don't have permission to write.

    0 讨论(0)
  • 2021-02-11 08:26

    I have also faced the same issue ("Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/@angular%2fcli failed, reason: connect ETIMEDOUT 104.16.22.35:443")

    Solution:

    Step 1: Delete package-lock.json file from your project

    Step 2: If your npm version is 5 and above. Then run the following command

    npm cache verify

    Step 3: Then run your parcel bunder

    npm install -g parcel-bundler

    Then finally, It was showing the "Network Connectivity" issue...!!!

    0 讨论(0)
  • 2021-02-11 08:30

    Step 1: Delete package-lock.json file from your project

    Step 2: If your npm version is 5 and above. Then run the following command

    npm cache verify
    

    Step 3: Then run your parcel bunder

    npm install -g parcel-bundler  
    

    or

    npm install --save-dev parcel-bundler babel-preset-env 
    

    Hopefully it should work.

    0 讨论(0)
  • 2021-02-11 08:36

    Downgrade npm to v4.6.1.

    npm install npm@4

    Version >= 5 is unstable.

    0 讨论(0)
  • 2021-02-11 08:36

    Step 1: Try to clear the cache first using

         npm cache clear --force
    

    Step 2: Try to install again

        npm install -g @angular/cli
    
    0 讨论(0)
提交回复
热议问题