NPM Error: npm ERR! 426 Upgrade Required [How to Solve]

Today, NPM sent a packet and reported error e426.

npm ERR! code E426
npm ERR! 426 Upgrade Required - PUT http://registry.npmjs.org/formats_date

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2021-11-25T06_55_02_155Z-debug.log
error Command failed with exit code 1.

NPM is upgraded to tls1.2.TLS 1.1\1.0 is not accepted.

Various attempts still report errors. Various searches have finally found the reason. HTTPS needs to be used when modifying the image

npm config set registry=https://registry.npmjs.org

Similar Posts: