Install the latest Vue Cli globally
npm install -g @vue/cli
yarn global add @vue/cli
View installed version
vue -V
vue --version
cd select a project directory of your own to initialize the project
Create your own project through vue scaffolding (vue-ts my own project name)
vue create vue-ts
Then follow the English prompts to install the version you need
- Take the version I installed as an example
For specific operations, please refer to the Vue Cli official website for specific operations:
https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create