配置淘宝镜像:npm config set registry https://registry.npm.taobao.org 配置完成后检验是否成功:npm config get registry 重新运行命令:npm install -g @vue/cli