npm

npm设置代理

npm config set proxy=http://127.0.0.1:对应的端口
npm set registry=https://registry.npmjs.org/

如果不设置为https的话会有这样的提示

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 config delete proxy
npm config delete https-proxy