npm镜像地址切换

1. 查看当前镜像地址

npm config get registry

2. 命令行修改

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

3. nrm修改

  • 安装
npm install -g nrm
  • 查看所有镜像
nrm ls

image

  • 修改镜像
nrm use xxx
  • 镜像测速
nrm test xxx

image

posted @ 2022-11-07 09:57  Li_pk  阅读(132)  评论(0)    收藏  举报