vue安装命令总和
一:vue安装脚手架
npm install -g @vue/cli
查看镜像
1.查看当前使用的镜像
npm config ls
2.如果是以下信息,则是国外的镜像
3、替换Taobao镜像
npm config set registry https://registry.npm.taobao.org
4、替换后再次查看当前使用的镜像
npm config ls
出现下面这个,说明替换成功
一:vue安装脚手架
npm install -g @vue/cli
查看镜像
1.查看当前使用的镜像
npm config ls
2.如果是以下信息,则是国外的镜像
3、替换Taobao镜像
npm config set registry https://registry.npm.taobao.org
4、替换后再次查看当前使用的镜像
npm config ls
出现下面这个,说明替换成功