npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

SSL routines:ssl3_get_record:wrong version number

Hi,
I’m trying to run the following command: npm i -D jest jest-preset-angular
And I get the following error:

npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning EPROTO: request to http://registry.npmjs.org/jest failed, reason: write EPROTO 140736094303104:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252:\n
npm WARN registry Using stale data from http://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to http://registry.npmjs.org/jest-preset-angular failed, reason: write EPROTO 140736094303104:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252:

Full log: 2019-03-12T12_28_09_691Z-debug.log (2,8 KB)


$ npm --versions
{ ‘myinsights-account’: ‘1.0.0’,
npm: ‘6.9.0’,
ares: ‘1.15.0’,
cldr: ‘33.1’,
http_parser: ‘2.8.0’,
icu: ‘62.1’,
modules: ‘64’,
napi: ‘3’,
nghttp2: ‘1.34.0’,
node: ‘10.15.3’,
openssl: ‘1.1.0j’,
tz: ‘2018e’,
unicode: ‘11.0’,
uv: ‘1.23.2’,
v8: ‘6.8.275.32-node.51’,
zlib: ‘1.2.11’ }

$ node -p process.platform
darwin

Any help will be greatly appreacited.
Thanks!


Just to clarify, I’m behind a proxy, but the config is already reflecting this. See below the output of npm config edit


Sorry, I’m stupid,
I changed the https-proxy to:
https-proxy=http://… and it’s solved now