vue-cli 配置代理
查看当前代理
npm config get proxy
npm config get https-proxy
删除代理
npm config set proxy null
npm config set https-proxy null
npm 配置代理
// npm 配置代理 无账号密码配置
npm config set proxy http://IP:端口号
npm config set https-proxy http://IP:端口号
有账号密码
npm config set proxy http://username:password@server:port //npm config set proxy http://账号:密码@IP:端口号
npm config set https-proxy http://username:password@server:port
配置淘宝镜像
// 查看现有源
npm config get registry
//设置淘宝源
npm config set registry https://registry.npm.taobao.org
//再次更新新源
npm update
//查看当前镜像
npm config get ELECTRON_MIRROR
//删除镜像
npm config delete ELECTRON_MIRROR
安装全局vue-cli4.0
npm uninstall vue-cli -g ,全局卸载
npm install -g @vue/cli ,全局安装