npm install xxx 报错
npm config list
npm config get proxy
解决:修改proxy 为null
npm config set proxy null
执行 npm install 就可以了
npm安装淘宝镜像和查看镜像设置 下载更快
1.通过cnpm使用淘宝镜像:
npm install -g cnpm --registry=https://registry.npm.taobao.org
2.将npm设置为淘宝镜像:
npm config set registry https://registry.npm.taobao.org
- 查看cnpm镜像设置:
npm config get registry
4.查看cnpm镜像设置:
cnpm config get registry