-
Notifications
You must be signed in to change notification settings - Fork 262
Socket hang up behind a proxy #536
Comments
Hi we are also facing the similar issue but instead of Angular we are doing it for react. Current version of Nodejs is 4.4 Error Stack: $ typings install 'dt~react-dom' --save --global typings ERR! cwd G:\workspace4brackets\typscript-0 typings ERR! If you need help, you may report this error at: |
in your .typingsrc proxy=http://proxy:9999
rejectUnauthorized=false
registryURL=http://api.typings.org/ The full list of allowed settings in .typingsrc is here:
|
Update: needed to use only |
@bensontrent I was able to verify and your comment works. Thanks for the help! .typingsrc
|
I don't know how many hours we've been struggling to make this work behind a corporate proxy and we're still having issues. .typingsrc
This command works fine! But this command fails with socket hang up We're getting this message:
node -v v6.2.1 |
While you're now able to connect to api.typings.org (via http), it appears you're unable to connect to raw.githubusercontent (via https). I had the same issue before I adding a github token. You might try something like this, if you're unsuccessful configuring your certificate authority through your firewall:
proxy=http://user:[email protected]:8080
rejectUnauthorized=false
registryURL=http://api.typings.org/
githubToken=YourVeryLongTokenString Other registries my require you to connect to other domains, I believe those domains can be routed with a .netrc file. An example
# .netrc
## To generate a github token with read only access, see:
## https://help.github.com/articles/creating-an-access-token-for-command-line-use/
machine github.com login <token> |
Thanks for spending your time on this bensontrent. However I'm afraid that creating a github token didn't help. Neither using the file _netrc helped me out. (I read that it should be called _netrc on Windows). |
I think I have a solution.
That should circumvent errors thrown by modified certificates when behind a firewall. Please let your network admin know you are having problems, it's best to use the correct certificate. |
Thanks again but I'll put this to rest for a while. I can't even get it to work by removing the s from https. Getting 503 when doing so. Step 4 would be really good but as you can see from my picture I don't have enough hair on my head to be able to take a lock! Darn! :) Yes, I think I'll have to convince the network department to put some effort in making life a bit easier for the developers in our company. |
@blakeembrey @magwalls's issue could be best addressed with a modification to the way |
Description
socket hang up
error when attempting to install behind a proxy.Steps to Reproduce
.typingsrc contents:
command:
Expected behavior:
a successful install
Actual behavior:
Versions
node -v v5.7.0
typings -v 1.0.4
Thanks for the help!
The text was updated successfully, but these errors were encountered: