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

npm: SSL error on v2.2.0 #1850

Closed
targos opened this issue May 31, 2015 · 37 comments
Closed

npm: SSL error on v2.2.0 #1850

targos opened this issue May 31, 2015 · 37 comments
Labels
confirmed-bug Issues with confirmed bugs. http Issues or PRs related to the http subsystem. npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@targos
Copy link
Member

targos commented May 31, 2015

Attempting to install a module with npm fails with the following error:
SSL Error: https://registry.npmjs.org/test does not support SSL.

Reproduced on Windows 8.1 x64 and Windows 10 x64.

The error only happens for modules that were never installed on the machine. My guess is that npm uses the local cache for known modules.

C:\Users\Michael\test>iojs -v
v2.2.0

C:\Users\Michael\test>npm -v
2.11.0

C:\Users\Michael\test>npm install abc
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\iojs\\node.exe" "C:\\Program Files\\iojs\\node
_modules\\npm\\bin\\npm-cli.js" "install" "abc"
npm ERR! node v2.2.0
npm ERR! npm  v2.11.0
npm ERR! code ESSL

npm ERR! SSL Error: https://registry.npmjs.org/abc does not support SSL
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Michael\test\npm-debug.log
C:\Users\Michael\test2>iojs -v
v2.1.0

C:\Users\Michael\test2>npm -v
2.10.1

C:\Users\Michael\test2>npm install abc
abc@0.6.1 node_modules\abc
@targos
Copy link
Member Author

targos commented May 31, 2015

@campersau
Copy link

+1 this also breaks my io.js tests on travis https://travis-ci.org/FredrikNoren/ungit/jobs/64777573

@rvagg
Copy link
Member

rvagg commented May 31, 2015

this seems to be impacting Linux as well, OSX appears to be fine

ping @othiym23, @iama

@targos
Copy link
Member Author

targos commented May 31, 2015

1eec5f0

@targos
Copy link
Member Author

targos commented May 31, 2015

this broke the response.hasOwnProperty('client') check from request

@rvagg
Copy link
Member

rvagg commented May 31, 2015

reversion @ #1851, see comments there, sorry for pulling you in @othiym23 & @iama (I meant that to be @-iarna, so sorry whoever you are).

@targos
Copy link
Member Author

targos commented May 31, 2015

there was no CI run for #1829 :(

@rvagg
Copy link
Member

rvagg commented May 31, 2015

probably wouldn't have helped, we're still shaving the test-npm yak, /cc @fishrosk123

@targos
Copy link
Member Author

targos commented May 31, 2015

/cc @Fishrock123

@targos targos changed the title npm (v2.2.0): SSL error on Windows npm: SSL error on v2.2.0 May 31, 2015
@vitaly-t
Copy link
Contributor

+1, broke my IO.js tests on Travis CI.

@wzrdtales
Copy link

+1, my tests on travis with io.js are also broken

jakubpawlowicz added a commit to clean-css/clean-css that referenced this issue May 31, 2015
@Globegitter
Copy link

@rvagg Just installed iojs 2.2.0 on mac osx and the same bug is affecting me.

@seemsindie
Copy link

+1 Same error here on arch linux

@nshtg
Copy link

nshtg commented May 31, 2015

Jep, breaks on a fresh installed server with debian 8. How can something like this slip into production?!

jakubpawlowicz added a commit to clean-css/clean-css that referenced this issue May 31, 2015
mtscout6 added a commit to react-bootstrap/react-bootstrap that referenced this issue May 31, 2015
This is a temporary measure until nodejs/node#1850 is resolved.
@Fishrock123 Fishrock123 added tls Issues and PRs related to the tls subsystem. npm Issues and PRs related to the npm client dependency or the npm registry. labels May 31, 2015
@Fishrock123
Copy link
Contributor

This is probably my fault, I think I forgot to run the test-npm for #1829. Investigating.

How can something like this slip into production?!

We still can't run test-npm from the CI well.

@chrisdickinson
Copy link
Contributor

Request's response.hasOwnProperty('client') check does not see it because it is a getter/setter.

A {g,s}etter would have been okay – the problem is that the property was set on the prototype instead of the instance.

@Fishrock123
Copy link
Contributor

A {g,s}etter would have been okay – the problem is that the property was set on the prototype instead of the instance.

Yes, I think we should do a static analysis and reconsider deprecating in the future.

@dougwilson
Copy link
Member

It's amusing to see so many people's tests failing on Travis CI because of this issue, mainly because many, many module are only specifying iojs for nvm to install, which is simply asking for a lot of pain.

@capaj
Copy link

capaj commented Jun 1, 2015

@dougwilson still lesser pain than to update travis.yml manually with each new io.js release. I for one will not bother to specify an io.js version in my travis.yml, because I think that this situation will not repeat again.

@silverwind
Copy link
Contributor

2.2.1 is out, fixing this. Get it while it's hot!

@sbrl
Copy link

sbrl commented Jun 3, 2015

How can I update npm if when I run npm update npm -g --force it fails because of this bug?

@ljharb
Copy link
Member

ljharb commented Jun 3, 2015

@sbrl you need to update io.js itself to v2.2.1 - you can't fix it with npm. also npm install -g npm@latest to update npm.

@sbrl
Copy link

sbrl commented Jun 3, 2015

@ljharb Thanks, that fixed it :)

andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this issue Jun 3, 2015
The improper deprecation of the property broke a feature in the
request module used by the bundled npm. This reverts the deprecation
part of this change.

PR-URL: nodejs/node#1852
Fixes: nodejs/node#1850
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. http Issues or PRs related to the http subsystem. npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests