npm Unable to Install angular-cli

后端 未结 6 2118
南旧
南旧 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:34

    This kind of issues usually happen when you are behind a proxy or a firewall that blocks npm from fetching the requested packaged.

    If you know your proxy address and port, open a console and set your HTTP_PROXY and HTTPS_PROXY variables before running npm, as follows:

    set HTTP_PROXY = "http://:"
    set HTTPS_PROXY = ... ;same as above 
    
    npm install 
    

提交回复
热议问题