how to do angular cli install behind corporate proxy
---------------------------------------------------
step: 0:
--------
By default : once installed Node Js without comparny proxy it will set npm registry.
If you want to set global npm regristry follow the step. But out case start from Step:1
npm set registry http://registry.npmjs.org/
Seems it is a certificate expire issue with:
npm registry https://registry.npmjs.org/
in stead run:
delete proxy:
-----------
npm config rm proxy
npm config rm https-proxy
Step 1
Open command prompt of your system (run as administrator).
Step 2
In command prompt, type the below-highlighted command and enter,
C:\windows\system32>ping proxy
Step 3
You will find proxy URL of your work environment very similar to the below proxy URL format in the first line,
proxy.[company name].com or proxy.{extension}.[company name].net
step:4
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Step 5
Once TypeScript is installed successfully, run the below command just to check which TypeScript version is installed,
>tsc –v
---------------------------------------------------
step: 0:
--------
By default : once installed Node Js without comparny proxy it will set npm registry.
If you want to set global npm regristry follow the step. But out case start from Step:1
npm set registry http://registry.npmjs.org/
Seems it is a certificate expire issue with:
npm registry https://registry.npmjs.org/
in stead run:
delete proxy:
-----------
npm config rm proxy
npm config rm https-proxy
Step 1
Open command prompt of your system (run as administrator).
Step 2
In command prompt, type the below-highlighted command and enter,
C:\windows\system32>ping proxy
Step 3
You will find proxy URL of your work environment very similar to the below proxy URL format in the first line,
proxy.[company name].com or proxy.{extension}.[company name].net
step:4
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Step 5
Once TypeScript is installed successfully, run the below command just to check which TypeScript version is installed,
>tsc –v
No comments:
Post a Comment