首页 > 其他分享 >npm修改源

npm修改源

时间:2022-12-11 20:01:21浏览次数:56  
标签:npm set 修改 registry https org config

1、命令行临时使用指定镜像(淘宝)

npm --registry https://registry.npm.taobao.org install express
复制
2、命令行永久更改使用指定镜像(淘宝)

npm config set registry https://registry.npm.taobao.org
3.其他命令

查看npm源地址有没有换成功:

npm config get registry

4.重置为官方源:

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

标签:npm,set,修改,registry,https,org,config
From: https://www.cnblogs.com/Arborblog/p/16974286.html

相关文章