Installing angular-cli on Windows Behind Proxy Server

后端 未结 6 1198
轻奢々
轻奢々 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:20

    Try using Windows Power Shell which solved my issue.

    0 讨论(0)
  • To load npm modules behind a proxy server you need to type in following commands in the node.js terminal:

    1. npm config set proxy http://proxy.company.com:8080
    2. npm config set https-proxy http://proxy.company.com:8080
    0 讨论(0)
  • 2021-02-06 08:28

    I have had ongoing problems with this issue for some time now. However, after the Final Release of Angular 2 and the accompanying update to the angular-cli package, I have been able to download and install angular-cli globally with no issues on a Windows 64-bit computer using the Command Prompt behind a proxy.

    Hope this helps someone!

    0 讨论(0)
  • 2021-02-06 08:30

    Use this command with port. npm config set https-proxy http://yours.com:1234

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-06 08:41
    1. Download and install Nodejs https://nodejs.org/en/download/

    2. Check your proxy setting. Based on your organization it will be change. If proxy not define you need to define your proxy setting in to LAN setting.

    1. Run CMD as Administrator enter the command

      npm config set https-proxy http://10.10.20.60:80

    1. If you are going to install in to a remote PC or you need windows Active Directory credential for installation.

    1. run angular cli command:

      npm i –g angular-cli

    0 讨论(0)
提交回复
热议问题