过客
过客
Published on 2024-03-07 / 7 Visits
0
0

npm使用淘宝镜像

在国内使用npm安装镜像的时候非常的慢,而且有时还断网下不了。可能是npm官方镜像在国内可能不太稳定,可以切换npm的国内镜像

修改成淘宝镜像源

npm set registry https://registry.npmmirror.com/

测试

npm config get registry

返回https://registry.npmmirror.com/,说明镜像配置成功


Comment