Installing input packages behind a corporate proxy

I get an error message below. I was looking for a problem with a self-signed certificate, and I got this answer, but I did everything that is mentioned here. I just get along and still have not succeeded.

What i have done so far :

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

Questions

  • where should the .typingsrc file be placed on windows 7?

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

  • Is the .typingsrc 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> 
+6
source share
3 answers

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

It just contains:

 proxy="http://xxx.xxx.xxx:80" rejectUnauthorized=false 
+15
source

If you work for a corporate company that blocks / restricts commands such as npm install, you need to set up a proxy server that allows you to get around this. I assume that if you get to this, you already did it. Make sure you remember the proxy server you used to add it to the .typingsrc file in the next step.

Just create a .typingsrc file in the root of your project and paste the following:

proxy = "http://xxx.xxx.xxx:8080" (here you insert the proxy server that you used) rejectUnauthorized = false

After that, you can run your global input commands without errors.

+4
source

Try "--proxy".

for instance

  C: \ .. \ src \ UI.Spa> typings --proxy "http: //xxx.xx.xx.xx: 8080 /" install dt ~ angular --global --save
+2
source

All Articles