最近使用vue框架发现出现如下问题

vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.You may want to run the following to upgrade to Vue CLI 3:

这是应为vue的版本存在更新,需要先卸载vue cli2,然后重新安装vue cli 3

1、首先我们需要卸载旧版本的vue cli:

npm uninstall vue-cli -g 或 yarn global remove vue-cli

2、然后重新安装vue cli

npm install -g @vue/cli

 

 

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐