npm publish报错error 426 Upgrade Required – PUT http://registry.npmjs.org/your-packageName

  • Post author:
  • Post category:其他


error:

npm notice 
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/your-packageName

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/leglo/.npm/_logs/2021-11-22T05_01_07_569Z-debug.log

terminal:

sudo npm install -g npm //npm update

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

then:

npm publish



版权声明:本文为LEGLO_原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。