npm config get registry
npm config set registry https://registry.npm.taobao.org
npm config set registry https://registry.npmmirror.com
npm cache clean --force
$env:NODE_OPTIONS=“–openssl-legacy-provider”
npm 切换镜像清理缓存
于 2024-04-03 10:11:05 首次发布
本文介绍了如何使用npmconfig命令来切换NPM的默认注册表,如将registry设置为TaobaoNPM和npmmirror,并清理npm缓存,同时提及了添加`openssl-legacy-provider`到NODE_OPTIONS环境变量。
5960

被折叠的 条评论
为什么被折叠?



