npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm uninstall vue-cli –g
npm install @vue/cli@3.10 –g
vue –V(或者vue --version)
上述命令运行后,结果如下所示:
C:\vue>vue -V
3.10.0
vue create hello-vue(项目名)
cd hello-vue
npm run serve
App running at: