2025年 最新淘宝的源镜像
https://registry.npmmirror.comhttps://registry.npmmirror.com
查看当前镜像
打开你的命令行工具,比如Windows的CMD、PowerShell,或者Linux/macOS的Terminal。
npm config get registry
使用以下命令将npm镜像源切换到淘宝的最新镜像地址:
npm config set registry https://registry.npmmirror.com/
验证npm镜像源是否切换成功
npm config get registry
如果返回的地址是https://registry.npmmirror.com/
,那么说明你已经成功切换到淘宝的npm镜像源了。