Fork me on GitHub

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

 

posted @ 2021-11-25 15:03  ssh__F  阅读(1185)  评论(0编辑  收藏  举报