Sitelet https://github.com/nodejs/node/issues/1850
Skip to content

npm: SSL error on v2.2.0 #1850

Description

@targos

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

Activity

  1. targos commented on May 31, 2015

    @targos
    MemberAuthor
  2. campersau commented on May 31, 2015

    @campersau

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

  3. rvagg commented on May 31, 2015

    @rvagg
    Member

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

    ping @othiym23, @iama

  4. targos commented on May 31, 2015

    @targos
    MemberAuthor
  5. targos commented on May 31, 2015

    @targos
    MemberAuthor

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

  6. rvagg commented on May 31, 2015

    @rvagg
    Member

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

  7. targos commented on May 31, 2015

    @targos
    MemberAuthor

    there was no CI run for #1829 :(

  8. rvagg commented on May 31, 2015

    @rvagg
    Member

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

  9. targos commented on May 31, 2015

    @targos
    MemberAuthor
  10. changed the title [-]npm (v2.2.0): SSL error on Windows[/-] [+]npm: SSL error on v2.2.0[/+] on May 31, 2015
  11. vitaly-t commented on May 31, 2015

    @vitaly-t
    Contributor
  12. wzrdtales commented on May 31, 2015

    @wzrdtales

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

  13. added a commit that references this issue on May 31, 2015
  14. Globegitter commented on May 31, 2015

    @Globegitter

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

  15. seemsindie commented on May 31, 2015

    @seemsindie

    +1 Same error here on arch linux

  16. 20 remaining items

  17. added
    httpIssues and PRs related to the http subsystem.
    and removed
    tlsIssues and PRs related to the tls subsystem.
    on May 31, 2015
  18. added a commit that references this issue on May 31, 2015
  19. silverwind commented on May 31, 2015

    @silverwind
    Contributor

    Fix has landed in 4d6b768. Let's hope one of the release guys is up for a quick patch release.

    cc: @Fishrock123 @rvagg @chrisdickinson

  20. chrisdickinson commented on Jun 1, 2015

    @chrisdickinson
    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.

  21. Fishrock123 commented on Jun 1, 2015

    @Fishrock123
    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.

  22. dougwilson commented on Jun 1, 2015

    @dougwilson
    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.

  23. capaj commented on Jun 1, 2015

    @capaj

    @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.

  24. silverwind commented on Jun 1, 2015

    @silverwind
    Contributor

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

  25. sbrl commented on Jun 3, 2015

    @sbrl

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

  26. ljharb commented on Jun 3, 2015

    @ljharb
    SponsorMember

    @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.

  27. sbrl commented on Jun 3, 2015

    @sbrl

    @ljharb Thanks, that fixed it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.httpIssues and PRs related to the http subsystem.npmIssues and PRs related to the npm client dependency or the npm registry.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions