最近使用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