Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing cldr-data over the proxy #39

Open
skoczylm opened this issue Nov 2, 2016 · 3 comments
Open

Error while installing cldr-data over the proxy #39

skoczylm opened this issue Nov 2, 2016 · 3 comments

Comments

@skoczylm
Copy link

skoczylm commented Nov 2, 2016

Cannot install cldr-data over the proxy:

$ npm install cldr-data

[email protected] install H:\szg2_poc_www\node_modules\cldr-data
node install.js

GET https://github.com/unicode-cldr/cldr-core/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-dates-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-localenames-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-misc-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-numbers-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-segments-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-units-modern/archive/30.0.2.zip
H:\szg2_poc_www\node_modules\cldr-data-downloader\lib\download.js:51
throw error;
^

Error: unable to verify the first certificate
at Error (native)
at TLSSocket. (_tls_wrap.js:1060:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:584:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)

My proxy settings (fiddler proxy for testing purposes):
.nmrpc
proxy=http://localhost:8888/
proxy-https=http://localhost:8888
strict-ssl=false

I've already tried to set environment variable: HTTP_PROXY to match configuration used in .npmrc without any results.

@Yves-Be
Copy link

Yves-Be commented Nov 9, 2016

I had the same problem, but I managed to install the packages by executing these commands before executing the npm install:

set HTTP_PROXY=http://proxy:port
set HTTPS_PROXY=http://proxy:port
set STRICT_SSL=false

Of course, this only works temporarily in the current command session. But setting it as an environment variable requires you to set those on every system where you want to build. A better solution might be to have a script that sets the variables before calling npm install.

@v-echo
Copy link

v-echo commented Jun 7, 2018

I've got the same error, but neither solution worked.

@jonfreedman
Copy link

jonfreedman commented Jan 27, 2019

Is it possible to update the downloader to use the proxy / https-proxy settings of NPM rather than the system settings? This is particularly annoying when trying to build using the frontend-maven-plugin which passes the relevant Maven proxy settings through to NPM but the only way I was able to get this to work is to additionally set the http_proxy and https_proxy environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants