有关npm镜像加速的问题 yarn nvm yrm

目录

镜像加速的问题

nvm 镜像加速

注意nvm的安装问题,注意调整相对应的shell

export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node

npm 镜像加速

cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

taobao镜像

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

huaweicloud镜像

npm config set registry https://mirrors.huaweicloud.com/repository/npm/

可以使用 npm config get registry 测试

yarn 镜像加速

安装 yarn

npm install -g yarn

临时修改镜像源

yarn save 软件名 --registry https://registry.npm.taobao.org/

全局修改

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

第三方软件修改 yrm

npm install -g yrm

yrm 列出可用镜像源

yrm ls

使用taobao镜像源

yrm use taobao

测试访问速度

yrm test taobao

上一篇:S71200PLC程序博图V14 西门子博图编写


下一篇:yarn/npm 设置镜像地址