npm install时的依赖库被墙或者安装速度很慢,执行以下指令设置国内镜像: 1. 通过config命令 npm config set registry https://registry.npm.taobao.org 2. 编辑~/.npmrc,加入以下内容 registry=https://registry.npm.taobao.org