了解网站建设的流程,建设网站可以赚钱吗,石家庄建网站,做网站开发 用什么npm 默认镜像 #xff1a;https://registry.npmjs.org/
问题
使用 npm install 安装依赖的时候#xff0c;受网络的限制#xff0c;速度会很慢。
解决
使用国内镜像代理。
nrm
nrm 是镜像源管理工具#xff1b;
1. 安装 nrm
npm install nrm --global# 查看镜像源列…npm 默认镜像 https://registry.npmjs.org/
问题
使用 npm install 安装依赖的时候受网络的限制速度会很慢。
解决
使用国内镜像代理。
nrm
nrm 是镜像源管理工具
1. 安装 nrm
npm install nrm --global# 查看镜像源列表
nrm ls淘宝原镜像 https://registry.npm.taobao.org 已更改为 https://registry.npmmirror.com
2. 测试当前环境下哪个镜像源速度最快。
nrm test3. 切换镜像源
npm config get registry # 查看当前镜像源
nrm use taobao # 等价于 npm config set registry https://registry.npmmirror.com使用 cnpm 或 yarn
npm install -g cnpm --registryhttps://registry.npmmirror.comcnpm install -g yarn阿里云针对淘宝镜像更改的说明 npmmirror 中国镜像站