npm配置镜像

2.持久使用(推荐使用)打开cmd使用命令:

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

// 配置后可通过下面命令来验证是否成功
 npm config ls
// 此时:metrics-registry = "http://registry.npm.taobao.org/"表示设置成功

//或
npm config get registry
posted @ 2022-03-16 09:55  晨光曦微  阅读(538)  评论(0编辑  收藏  举报