问题重现
当通过vue create xxx
创建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:
npm uninstall -g vue-cli
npm install -g @vue/cli
提示Vue-cli版本过低通过指令进行更新:npm install -g @vue/cli
更新过程中报错
npm ERR! code EEXIST
npm ERR! path D:\dell\nodejsData\node_modules\npm\node_global_modules\node_modules\@vue\cli\bin\vue.js
npm ERR! dest D:\dell\nodejsData\node_modules\npm\node_global_modules\vue.cmd
npm ERR! EEXIST: