问题大集-02-vue ui 启动时Failed to get response from https://registry.npm.taobao.org/vue-cli-version-marker

1、问题:Failed to get response from https://registry.npm.taobao.org/vue-cli-version-marker

        使用 Vue CLI 的图形用户界面(GUI)时遇到这个错误,通常意味着 Vue CLI 在尝试从指定的 npm 镜像(这里是淘宝的 npm 镜像 https://registry.npm.taobao.org)获取某个包(这里是 vue-cli-version-marker)时失败了,可能是因为网络(检查网络是否通畅、网络配置是否正确(防火墙等))、镜像源(淘宝的 npm 镜像可能暂时不可用或没有这个包)和vue cli配置问题

2、解决方法(本次遇到的是镜像源的问题)

(1)切换 npm 镜像:

        使用官方的 npm 镜像,运行以下命令来切换:

        npm config set registry https://registry.npmjs.org/

问题大集-02-vue ui 启动时Failed to get response from https://registry.npm.taobao.org/vue-cli-version-marker_第1张图片

(2)重启vue ui

问题大集-02-vue ui 启动时Failed to get response from https://registry.npm.taobao.org/vue-cli-version-marker_第2张图片

你可能感兴趣的:(vue.js,ui,前端)