Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

SSL Wrong signature length installing any module #2703

Closed
cbegg50 opened this Issue · 12 comments

6 participants

@cbegg50

I get the following errors when attempting to install flatiron or jquery:

[colin@alarmpi JavaScript]$ sudo npm install flatiron -g
npm http GET https://registry.npmjs.org/flatiron
npm http GET https://registry.npmjs.org/flatiron
npm http GET https://registry.npmjs.org/flatiron
npm ERR! Error: 1075388416:error:1408D108:SSL routines:SSL3_GET_KEY_EXCHANGE:wrong signature length:../deps/openssl/openssl/ssl/s3_clnt.c:1617:
npm ERR!
npm ERR! at CleartextStream._puller (tls.js:608:24)
npm ERR! at CleartextStream.CryptoStream._pull (tls.js:542:19)
npm ERR! at SecurePair.cycle (tls.js:832:20)
npm ERR! at EncryptedStream.CryptoStream.write (tls.js:220:13)
npm ERR! at Socket.ondata (stream.js:38:26)
npm ERR! at Socket.EventEmitter.emit (events.js:88:17)
npm ERR! at TCP.onread (net.js:395:14)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.1.9-33-ARCH+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "flatiron" "-g"
npm ERR! cwd /home/colin/JavaScript
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/JavaScript/npm-debug.log
npm ERR! not ok code 0
[colin@alarmpi JavaScript]$ sudo npm install jquery

npm http GET https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/jquery
npm ERR! Error: 1080885248:error:1408D108:SSL routines:SSL3_GET_KEY_EXCHANGE:wrong signature length:../deps/openssl/openssl/ssl/s3_clnt.c:1617:
npm ERR!
npm ERR! at CleartextStream._puller (tls.js:608:24)
npm ERR! at CleartextStream.CryptoStream._pull (tls.js:542:19)
npm ERR! at SecurePair.cycle (tls.js:832:20)
npm ERR! at EncryptedStream.CryptoStream.write (tls.js:220:13)
npm ERR! at Socket.ondata (stream.js:38:26)
npm ERR! at Socket.EventEmitter.emit (events.js:88:17)
npm ERR! at TCP.onread (net.js:395:14)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.1.9-33-ARCH+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "jquery"
npm ERR! cwd /home/colin/JavaScript
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/JavaScript/npm-debug.log
npm ERR! not ok code 0

@xenomuta

I have the same issue.
The unsecure (non-ssl) registry link is no longer working and there is no way to disable strict-ssl without recompiling npm because it is overriden to true by default...

@isaacs
Owner

Try again.

@xenomuta You do not have to "recompile" npm. You probably just need to set a config somewhere. npm config ls will tell you which file your registry is set in.

@isaacs isaacs closed this
@xenomuta

thanks. Working now. Nice work man.

@cbegg50
@mfncooper
Collaborator

Try npm cache clean and see if that helps.

@cbegg50
@isaacs
Owner
@cbegg50
@ekryski

I'm also having this issue on Pandaboard (ARM7) running Node 0.8.8.

@ekryski

I just changed my registry to the http version and it seems to have worked. To change npm config defaults read https://npmjs.org/doc/config.html. Not sure if this is an issue with ARM or one that is affecting all platforms using v0.8.8.

@ekryski

I updated my versions of openssl libssl-dev python libcurl4-openssl-dev and that seemed to have fixed the issue. Alternatively you can just change the registry config value as I stated above.

@WarheadsSE

For anyone following this, I am looking into it for Arch Linux ARM @ archlinuxarm/PKGBUILDs#242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.