首页 > 其他分享 >npm修改为国内源

npm修改为国内源

时间:2022-10-31 20:00:21浏览次数:43  
标签:npm 国内 修改 registry https org config

1、查看默认源

命令:npm config get registry
输出:https://registry.npmjs.org/

 

2、修改为国内淘宝源

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

 

3、查看修改是否成功

命令:npm config get registry
输出:https://registry.npm.taobao.org/

 

友情提示:以上npm命令执行前提是系统已安装nodejs,本示例为Windows系统示例。

标签:npm,国内,修改,registry,https,org,config
From: https://www.cnblogs.com/lightbc/p/16845555.html

相关文章