npm and mbt build error -npm notice Beginning October

Information: 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/

Solution:
1.将npm镜像地址设为https的地址
npm config set registry https://registry.npmjs.org

2.运行以下命令支持TLS 1.2:
npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz

你可能感兴趣的:(npm and mbt build error -npm notice Beginning October)