ERR! 426 Upgrade Required
Solution:
Update the node version to above 14.18.0.
Then upgrade NPM to the latest version
npm install -g npm@latest
npm config set registry https://registry.npmjs.org/
When I try to publish a new package to npm or try to logout, I get the following error message:
npm ERR! code E426
npm ERR! 426 Upgrade Required
Reason: After October 4, 2021, npm websites and npm registry must use TLS Secure Sockets Layer version 1.2, so you need to upgrade the corresponding version
Beginning October 4, 2021, all connections to npm websites and the npm registry—including for package installation—must use TLS 1.2 or higher.
Source
What I did:
upgrade Node (0) to its current recommended version: 14.18.0 LTSupgrade npm with npm install -g npm@latest
In my case, I had to manually set the registry to use https instead of http as well:
npm config set registry https://registry.npmjs.org/
(0) When using nvm, that’s what you need to do:
nvm install 14.18.0
nvm use 14.18.0
nvm alias default 14.18.0
Read More:
- How to Solve NPM Error: listen EADDRINUSE 127.0.0.1:8080
- How to Solve labelme Install Error in Ubuntu
- How to Solve Error vim :call CompileRunGcc()
- How to Solve Ubuntu “Failed to fetch” Error
- Linux: How to Solve pyperclip Module Error
- How to Solve Xmind Install Error in Ubuntu System
- Linux: How to Solve sudo operate Error
- How to Solve Roscore Run error [Install ROS]
- How to Solve A-LOAM Ceres Version Error
- How to Solve Error: Driver “kvm2“ not found
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- How to Solve Git Filename too long Error
- How to Solve “Error: source file could not be loaded“ [Ubuntu Use LibreOffice]
- Ffmpeg: How to Solve error initializing filter ‘gltransition’
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- How to Solve Oracle startup monitoring error
- How to Solve insufficent privileges error: Ora-01031
- CentOS: How to Solve Python File Run Error
- Linux: How to Solve vim ~/.bashrc Execute Error
- How to Solve C++ Error: “no matching function for call to ‘atoi/atof’”