JSPM GitHub error

I am trying to install the Aurelia Tutorial skeleton navigation from Aurelia.io. I installed Node.js, set up a proxy, and installed the JSPM package.

After that I try to install credencial on GitHub by running "jspm registry config github" command and it always fails.

err  Error: connect ECONNREFUSED
     at exports._errnoException (util.js:746:11)
     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

      

At home, I have no problem installing credencial and downloading data from GitHub.

I tried to initialize the jspm package using the jspm init command, but I get a lot of errors like this:

warn Error on download for github:ModuleLoader/es6-module-loader
     Error: connect ECONNREFUSED
         at exports._errnoException (util.js:746:11)
         at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

err  Error downloading loader files.

err  undefined

      

Does JSPM need to set up a proxy? And How?

+3


source to share


2 answers


To change the jspm proxy, an environment variable had to be set HTTP_PROXY

.



+1


source


Just in case someone else makes this stupid mistake (which I did).

On Windows, setting the environment variable HTTP_PROXY is not easy set HTTP_PROXY=something

. It can probably be done on the command line, but it's also easy to do with system prefs. window. (only google windows environment variable).



The hard part is not to install env. variable, then there are so many examples on the web for Linux, so it's easy to forget (and then nothing works).

By the way, installing this solved my jspm problem (ECONNRESET) and I'm behind the company proxy.

0


source







All Articles