Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Typing packages behind corporate proxy

I'm getting the error message below. I searched for the self signed certificate problem and I got to this answer, but I did everything that is mentioned here. I'm just going around and still no success.

What I did so far:

  • I have a .typingsrc in my %USERPROFILE% directory containing the example below
  • I have another .typingsrc file in my project root containing the example below
  • I have tried every combination of the example below

Questions:

  • where the .typingsrc file should be placed in Windows 7?

  • Where can I find a documentation about properties of .typingsrc file? It is always just mentioned and there is no example with parameters.

  • Is .typingsrc a JSON file or something else?

Still no success.

Do you have a solution for this?

{
        "rejectUnauthoriozed":false,
        "httpProxy": "",
        "httpsProxy": "",
        "insecure":true,
        "strict-ssl":false
}

Error message:

C:\..\src\UI.Spa>typings install dt~angular --global --save
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/angular/versions/latest"
typings ERR! caused by self signed certificate in certificate chain

typings ERR! cwd C:\..\src\UI.Spa
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\..\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install" "dt~angular" "--global" "--save"
typings ERR! node -v v5.10.1
typings ERR! typings -v 1.1.0
typings ERR! code EUNAVAILABLE

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>
like image 933
AndrasCsanyi Avatar asked Jun 14 '16 15:06

AndrasCsanyi


People also ask

How npm install behind corporate proxy?

Go to command prompt or terminal depending on your machine(tip: hit Win + R and type cmd). In the command prompt type the following command npm config set proxy http://<username><password>@proxy-server-url>:<port> then config set https-proxy http://<username><password>@proxy-server-url>:<port> .


1 Answers

My .typingsrc file is located at the project root level (where typings.json is located).

It simply contains:

proxy="http://xxx.xxx.xxx:80"
rejectUnauthorized=false 
like image 185
Terje Avatar answered Jan 11 '23 07:01

Terje