426 Upgrade Required

  • 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 ERR! code E426
npm ERR! 426 Upgrade Required - PUT http://registry.npmjs.org/vue-common-vuepress
  • 网上有各种升级的方案,这里我没有尝试
  • 解决:
npm config set registry=https://registry.npmjs.org
  • 直接改为https后就可以正常发版本了

猜你喜欢

转载自blog.csdn.net/weixin_43794749/article/details/120867438
今日推荐