npm Unable to Install angular-cli

后端 未结 6 2037
南旧
南旧 2021-01-14 13:59

I am trying to install angular-cli via npm. I have the recent version of Nodejs and git installed. I am not behind any proxy server(verified it through netsh winhttp s

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-14 14:45

    You need to override your proxy settings to install angular CLI. Try executing below command :

    npm config set registry http://registry.npmjs.org/
    

    This will override your proxy and you do not need to make any changes to your connections or firewall. Once this command executes successfully try installing angular CLI using below command:

    npm install -g @angular/cli
    

    Refer this link for more details on this.

    This solved problems for me. Hope this helps!

提交回复
热议问题