Installing npm package fails with 404

后端 未结 11 1095
自闭症患者
自闭症患者 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:45

    Try first this commands (in windows run as administrator)

    npm config set registry http://registry.npmjs.org
    npm install -g @angular/cli
    

    if still not working let's update NPM and nodejs by running this commands

    npm -g install npm
    npm cache clean -f
    npm install -g n
    

    then try to run

    npm install -g @angular/cli
    

    This should solve this problem

提交回复
热议问题