# 查看源npm get registrynpm config get registry # 临时修改npm --registry https://registry.npmmirror.com install any-touch # 永久修改npm config set registry https://registry.npmmirror.com # 还原npm config set registry https://registry.npmjs.org
# 安装 nrmnpm install -g nrm # 列出当前可用的所有镜像源nrm ls # 使用淘宝镜像源nrm use taobao # 测试访问速度nrm test taobao
# 查看源pnpm get registrypnpm config get registry # 临时修改pnpm --registry https://registry.npmmirror.com install any-touch # 永久修改pnpm config set registry https://registry.npmmirror.com # 还原pnpm config set registry https://registry.npmjs.org
# 查看源yarn config get registry # 临时修改yarn add any-touch@latest --registry=https://registry.npmjs.org/ # 永久修改yarn config set registry https://registry.npmmirror.com/ # 还原yarn config set registry https://registry.yarnpkg.com
# 安装 yrmnpm install -g yrm # 列出当前可用的所有镜像源yrm ls # 使用淘宝镜像源yrm use taobao # 测试访问速度yrm test taobao