只需要一个命令:vue create xxx
如果现在的环境是vue2,会提示
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
$ cd xxx
$ npm run serve
网友评论