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
本文来自博客园,作者:.net&new,转载请注明原文链接:https://www.cnblogs.com/wugh8726254/p/17764934.html