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] Installing latest npm downgraded me from 7 to 6 and now I can't install anything #3848

Open
1 task done
AndrewRayCode opened this issue Oct 7, 2021 · 1 comment
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release

Comments

@AndrewRayCode
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I tried to publish a package and got:

npm ERR! 426 Upgrade Required - PUT http://registry.npmjs.org/@shaderfrog%2fglsl-parser

Ok I guess it's time. According to: https://github.blog/2021-02-02-npm-7-is-now-generally-available/

Please note, npm 7 is now published as latest to the npm registry and will be the default version installed when you run npm install --global npm

Cool. So I tried:

$ npm --version
7.21.1

$ nvm ls
->      v16.2.0
         system
default -> 16 (-> v16.2.0)
node -> stable (-> v16.2.0) (default)
iojs -> iojs- (-> N/A) (default)

$ npm install --global npm
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

removed 69 packages, and changed 103 packages in 1m

$ npm --version
6.13.0

You can see it downgraded my npm from 7 to 6, and now I can't do anything due to npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY errors on any npm networking commands.

Expected Behavior

Installing npm to install npm 7 and remove the TLS errors.

Steps To Reproduce

  1. On any environment afaik
  2. Node 16 installed by nvm
  3. Run npm install --global npm from the official instructions

Then your npm is downgraded to 6.

Environment

  • OS: MacOS
  • Node: Node 16 via nvm
  • npm: Broken
@AndrewRayCode AndrewRayCode added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Oct 7, 2021
@ruyadorno ruyadorno removed the Needs Triage needs review for next steps label Jan 25, 2022
@ruyadorno
Copy link
Contributor

ruyadorno commented Jan 25, 2022

@AndrewRayCode can you try replicating this problem on the latest version of npm? It might have been fixed since then.

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

No branches or pull requests

2 participants