为了提速依赖下载速度,可以配置国内镜像站地址
npm config get registry #检查镜像站
npm config set registry=http://registry.npm.taobao.org #配置淘宝仓库
也可以临时配置
npm --registry https://registry.npm.taobao.org install xxx
为了提速依赖下载速度,可以配置国内镜像站地址
npm config get registry #检查镜像站
npm config set registry=http://registry.npm.taobao.org #配置淘宝仓库
也可以临时配置
npm --registry https://registry.npm.taobao.org install xxx