npm更换淘宝镜像

 

解决方案
1、打开命令行工具,并执行以下命令来设置npm的registry为淘宝镜像源:

npm config set registry https://registry.npm.taobao.org/
1
2、验证镜像源是否设置成功,执行以下命令:

npm config get registry
1
确保输出的结果为 https://registry.npm.taobao.org/。
3、重新运行安装命令来安装npm包,例如:

npm install
————————————————

原文链接:https://blog.csdn.net/T_Y_F_/article/details/131387826

posted @ 2023-10-14 22:57  .net&new  阅读(1320)  评论(0编辑  收藏  举报