npm配置国内镜像

npm使用国内镜像的方法

一.通过命令配置

  1. 命令

npm config set registry https://registry.npm.taobao.org

  1. 验证命令

npm config get registry

如果返回https://registry.npm.taobao.org,说明镜像配置成功。

posted @ 2022-03-05 12:30  (x²+y²-1)³=x²y³  阅读(33)  评论(0)    收藏  举报