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

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

vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6. You may want to run the fo_第1张图片 

vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6. You may want to run the fo_第2张图片 

你可能感兴趣的:(编程中的问题)