cxl
Published on 2025-01-11 / 52 Visits
7
0

镜像资源

镜像站点

npm源镜像

相关命令:

 npm:

  查看镜像源:npm get registry
  设置镜像源:npm config set registry https://registry.npmmirror.com	

 yarn:

  查看镜像源:yarn config get registry
  设置镜像源:yarn config set registry https://registry.npmmirror.com/

 pnpm:

  查看镜像源:pnpm config get registry
  设置镜像源:pnpm config set registry https://registry.npmmirror.com/

nrm 镜像源管理工具

nrm 全称为 npm registry manager,旨在帮助用户管理不同的镜像源,基本命令如下:

 安装:nrm npm install nrm -g 
 镜像源列表: nrm ls 
 添加新镜像源: nrm add <registry-name> <registry-url> 
 删除镜像源: nrm del <registry-name> 
 切换镜像源: nrm use <registry-name> 
 测试所有镜像源速度: nrm test


Comment