npm Unable to Install angular-cli

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

    Setp-1: open windows command prompt then type following command to get the IP address of your proxy server

    ping your-proxy-name
    

    For example:

    ping myproxy.xyz.com
    

    Step-2: open Node.js command prompt and type following command

    npm config set http-proxy http://your-proxy-ip-retrieved-in-step-1:port
    npm config set https-proxy http://your-proxy-ip-retrieved-in-step-1:port
    

    For example:

    npm config set http-proxy http://192.168.192.95:8080
    npm config set https-proxy http://192.168.192.95:8080
    

    Setp-3: on Node.js command prompt type following command to install angular

    npm install -g @angular/cli
    

    Hope it will work for you.

提交回复
热议问题