npm设置淘宝镜像

1.检测现在的镜像地址

npm config get registry

2.如果不是淘宝最新的镜像地址,请更换

//清空缓存
npm cache clean --force 
//切换新源
npm config set registry https://registry.npmmirror.com

 

posted @ 2024-03-12 11:01  始是逍遥人  阅读(68)  评论(0编辑  收藏  举报