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

[BUG] <NPM install not downloading any package from NPM registry> #4011

Closed
2 tasks done
NoobletBilal opened this issue Nov 8, 2021 · 13 comments
Closed
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@NoobletBilal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

NPM install is not pulling any repositry from npm repositories. There SSL routine error for Bad signature. NPM debug logs are as below.
nfo it worked if it ends with ok
erbose cli [ 'C:\Program Files\nodejs\node.exe',
erbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
erbose cli 'install',
erbose cli '-g',
erbose cli 'gulp' ]
nfo using npm@3.10.9
nfo using node@v6.9.2
illy loadCurrentTree Starting
illy install loadCurrentTree
illy install readGlobalPackageData
illy fetchPackageMetaData gulp
illy fetchNamedPackageData gulp
illy mapToRegistry name gulp
silly mapToRegistry using default registry
silly mapToRegistry registry https://registry.npmjs.org/
silly mapToRegistry data Result {
silly mapToRegistry raw: 'gulp',
silly mapToRegistry scope: null,
silly mapToRegistry escapedName: 'gulp',
silly mapToRegistry name: 'gulp',
silly mapToRegistry rawSpec: '',
silly mapToRegistry spec: 'latest',
silly mapToRegistry type: 'tag' }
silly mapToRegistry uri https://registry.npmjs.org/gulp
verbose request uri https://registry.npmjs.org/gulp
verbose request no auth needed
info attempt registry request try #1 at 6:43:33 PM
verbose request id 91d9fe34d468ef4f
http request GET https://registry.npmjs.org/gulp
info retry will retry, error on last attempt: Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
info attempt registry request try #2 at 6:43:47 PM
http request GET https://registry.npmjs.org/gulp
info retry will retry, error on last attempt: Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
info attempt registry request try #3 at 6:44:48 PM
http request GET https://registry.npmjs.org/gulp
silly fetchPackageMetaData Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
silly fetchPackageMetaData
silly fetchPackageMetaData at exports._errnoException (util.js:1022:11)
silly fetchPackageMetaData at WriteWrap.afterWrite (net.js:801:14)
silly fetchPackageMetaData error for gulp { Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
silly fetchPackageMetaData
silly fetchPackageMetaData at exports._errnoException (util.js:1022:11)
silly fetchPackageMetaData at WriteWrap.afterWrite (net.js:801:14) code: 'EPROTO', errno: 'EPROTO', syscall: 'write' }
silly rollbackFailedOptional Starting
silly rollbackFailedOptional Finishing
silly runTopLevelLifecycles Finishing
silly install printInstalled
verbose stack Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
verbose stack
verbose stack at exports._errnoException (util.js:1022:11)
verbose stack at WriteWrap.afterWrite (net.js:801:14)
verbose cwd D:
error Windows_NT 10.0.19042
error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "gulp"
error node v6.9.2
error npm v3.10.9
error code EPROTO
error errno EPROTO
error syscall write
error write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
error If you need help, you may report this error at:
error https://github.com/npm/npm/issues
verbose exit [ 1, true ]

Expected Behavior

No response

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm: 3.10.9
  • Node: 6.9.2
  • OS: Windows 10
  • platform: HP Notebook
  • npm config:
; copy and paste output from `npm config ls` here
@NoobletBilal NoobletBilal added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Nov 8, 2021
@baixiaoyu2997
Copy link

same issue

@wraithgar
Copy link
Member

npm 3 is unsupported, and is using ssl versions that are not supported by the npm registry anymore.

@ljharb
Copy link
Contributor

ljharb commented Nov 18, 2021

Only node 0.8 and below use ssl versions that the registry doesn’t; npm 3 and node 0.10, and later, can connect fine. npm 3 is indeed long unsupported, though :-)

@NoobletBilal
Copy link
Author

I have tested same on HP 10 gen laptop Windows 10 and everything works fine Node installation and npm install for all packages. The issue arised on many HP 11th gen laptop Windows 10 i tested.

@Chris55
Copy link

Chris55 commented Mar 24, 2022

hi

have you tried to use http instead of https ?

npm config set registry http://registry.npmjs.org/

@pdqsoftware
Copy link

Hi guys,
I am having exactly the same problem as mentioned at the top by Noobletbilal.
I'm using Node v7.10.1 and npm 4.2.0.
I get the error when I try to install any package, either globally or locally.
I have tried setting strict-ssl to false and using the http and https registry URLS.
My machine is a brand new Windows 10 box.

If I go up to using Node 8.0.0, npm works fine.

Please can someone make some suggestions to get me past this? Unfortunately my app requires this version of Node!
Thanks very much.
Paul

@ljharb
Copy link
Contributor

ljharb commented Apr 13, 2022

@pdqsoftware both of those are wildly out of date. The oldest node that is supported is node 12 (and in a few weeks, it’ll be 14) and only npm 8 latest is supported.

@pdqsoftware
Copy link

@pdqsoftware both of those are wildly out of date. The oldest node that is supported is node 12 (and in a few weeks, it’ll be 14) and only npm 8 latest is supported.

Thanks @ljharb. Don't I know it! Sadly it is a company project that was going long before my time. I've talked about getting a newer version of Node in place, but it will be very time consuming to do. I'm also not sure how I would even start with such an old application. If you can please give me any ideas on how to do that I will certainly give it a go...

@ljharb
Copy link
Contributor

ljharb commented Apr 13, 2022

@pdqsoftware start on node 8, update all your deps to the latest non-breaking versions; test and deploy. update to node 10, update deps, test and deploy. and repeat, going up to 12, and then 14, and ideally then 16.

@InaFK
Copy link

InaFK commented May 6, 2022

@pdqsoftware both of those are wildly out of date. The oldest node that is supported is node 12 (and in a few weeks, it’ll be 14) and only npm 8 latest is supported.

Thanks @ljharb. Don't I know it! Sadly it is a company project that was going long before my time. I've talked about getting a newer version of Node in place, but it will be very time consuming to do. I'm also not sure how I would even start with such an old application. If you can please give me any ideas on how to do that I will certainly give it a go...

Hi @pdqsoftware! I've similar situation on our legacy projects with the same issue (node v6.10.3 / npm v3.10.10).
Thank you @ljharb for describing the way how gradually move on to highest versions.
@pdqsoftware have you tried @ljharb's conception? If yes, how was it? Thanks!

@pdqsoftware
Copy link

pdqsoftware commented Oct 11, 2022 via email

@ljharb
Copy link
Contributor

ljharb commented Oct 11, 2022

Sure, but please find me in Twitter or Slack or IRC instead of making noise on this issue :-)

@pdqsoftware
Copy link

@pdqsoftware both of those are wildly out of date. The oldest node that is supported is node 12 (and in a few weeks, it’ll be 14) and only npm 8 latest is supported.

Thanks @ljharb. Don't I know it! Sadly it is a company project that was going long before my time. I've talked about getting a newer version of Node in place, but it will be very time consuming to do. I'm also not sure how I would even start with such an old application. If you can please give me any ideas on how to do that I will certainly give it a go...

Hi @pdqsoftware! I've similar situation on our legacy projects with the same issue (node v6.10.3 / npm v3.10.10). Thank you @ljharb for describing the way how gradually move on to highest versions. @pdqsoftware have you tried @ljharb's conception? If yes, how was it? Thanks!

Hi @InaFK, it has taken a while but I am now just starting to make progress on this 'project'. I've moved from v7.10.1 through to v8.5.0. I've had some fun with stuff that has changed - mostly webpack configurations. But I'm getting there. The hardest bit is testing everything to make sure nothing has broken. I also take regular breaks, for a few days, from it so that I don't get too disheartened!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

7 participants