Installing angular-cli on Windows Behind Proxy Server

后端 未结 6 1214
轻奢々
轻奢々 2021-02-06 07:58

I am currently building Angular 2 demos from behind a corporate proxy server with known issues for blocking both NPM and TypeScript \'typings\' installs. While I have been able

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 08:33

    I was able install angular-cli behind the corporate proxy, Need to follow the below steps:

    1. Install node/npm
    2. Configure proxy for Nodejs like below :

      Run the below commands

      npm config set proxy {your proxy server address}

      npm config set {your proxy server address}

    3.Install "gitbash", as gitbash will help us download the packages from gitHub

    1. Cofigure 'gitbash' proxy run the below command:

    git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

    Then hit the final command:

    npm install -g angular-cli@latest

提交回复
热议问题