jspm-cli: jspm install fails behind proxy

$ jspm install github:jquery

Getting version list for github:jquery
err  Error looking up version for jquery
     ssh: connect to host github.com port 22: Connection refused
     fatal: Could not read from remote repository.

     Please make sure you have the correct access rights
     and the repository exists.

     Config file updated.
     package.json updated.
warn Install finished, with errors.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 67 (28 by maintainers)

Most upvoted comments

Same issue. Doesn’t work behind corporate proxy on windows 7. This is blocker in using jspm.

node -v v0.12.7

npm -v 2.14.1

Trying to run http://aurelia.io/get-started.html example.

Neither “jspm install -y” or “jspm registry config github” works. Files are getting downloaded properly with npm install command. Only failing with jspm.

proxy and https-proxy are correctly set in npm config (hence npm works proplery but not jspm).

Also, tried setting http_proxy and https_proxy in windows console as env variable but no luck.

It looks like this may not yet be resolved. What is the current status? When I connect through corporate firewall:

:jspm install github:components/jquery --https

     Checking versions for github:components/jquery

err  Error: connect ECONNREFUSED
         at errnoException (net.js:904:11)
         at Object.afterConnect [as oncomplete] (net.js:895:19)

warn Installation changes not saved

Note the above happens whether I use --https or not. When connected outside corporate firewall:

:jspm install github:components/jquery

     Checking versions for github:components/jquery
     Downloading github:components/jquery@2.1.1
ok   Installed github:components/jquery as github:components/jquery@^2.1.1 (2.1.1)
ok   Loader set to local library sources

ok   Install complete

My jspm config includes username/password for github:

{
  "github": {
    "username": "tauren",
    "password": "***hidden***"
  }
}

I’ve configured .gitrc to use the osxkeychain credential helper and my github username/password is already stored in Keychain:

:more ~/.gitconfig 
[core]
        excludesfile = /Users/tmil11/.gitignore_global
[difftool "sourcetree"]
        cmd = opendiff \"$LOCAL\" \"$REMOTE\"
        path = 
[mergetool "sourcetree"]
        cmd = /opt/homebrew-cask/Caskroom/sourcetree/1.9.5.2/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
        trustExitCode = true
[push]
        default = matching
[credential]
        helper = osxkeychain

My .npmrc file has proxy values configured:

:more ~/.npmrc 
strict-ssl = false
registry = http://registry.npmjs.org/
proxy = http://proxy.host.com:8080/
https-proxy = http://proxy.host.com:8080

Lastly, proxy environment variables are configured in the shell:

:echo $HTTP_PROXY
http://proxy.host.com:8080
:echo $HTTPS_PROXY
http://proxy.host.com:8080

As far as I can tell, the issue is a problem with JSPM. It is a blocker at the moment, and I’d be happy to work on resolving the problem. But I’d like to know more details about the current status of this issue. I would also appreciate guidance on what might be wrong and where to find it in the code.