vue项目中 npm使用淘宝镜像方法记录 cnpm安装
1,设置默认镜像地址
npm config set registry https://registry.npm.taobao.org
2,验证镜像地址是否设置成功
npm config get registry
3,安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
4,使用cnpm安装
cnpm install
5,使用cnpm 启动项目
cnpm run serve
本文仅做为记录npm使用国内镜像方法,安装cnpm