npm发包报错 E426


今天 npm 上发个包,结果报错 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 升级 到 TLS1.2,不接受 TLS 1.1\1.0了。

各种尝试还是报错,各种搜索终于找到原因了,修改镜像的时候需要使用 https

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM