Installing npm package fails with 404

后端 未结 11 1066
自闭症患者
自闭症患者 2020-12-10 11:35

Using the command prompt, I am trying to install angular CLI and it fails. I have npm version 5.5.1 and node version v8.9.1. I am trying to install angular cli using the com

相关标签:
11条回答
  • 2020-12-10 11:55

    the only command line "npm -g install npm" solved the issue for me! the following link can be helpful to dig deep for a better understanding. Thanks a lot.

    0 讨论(0)
  • 2020-12-10 11:56

    It was giving the same error for me when I use office network/vpn as they have 'umbrella' DNS security shield. To solve this issue, connect to personal network and type the below commands:

        npm config set registry http://registry.npmjs.org
        npm install -g @angular/cli
    
    
    0 讨论(0)
  • 2020-12-10 11:57

    It is an network error , check your network connection and try to install it again.

    0 讨论(0)
  • 2020-12-10 12:01

    Alternative, another option to avoid 404 npm error

    check if your terminal is in the root directory, if not your npm scripts will not execute because it will not be able to see the package.json

    0 讨论(0)
  • 2020-12-10 12:01

    I had same problem with a private package. Need to:

    • npm adduser
    • npm login
    0 讨论(0)
提交回复
热议问题