Use vue-cli to initialize the project structure

Install the latest Vue Cli globally

npm install -g @vue/cli

yarn global add @vue/cli

View installed version

vue -V

vue --version

Insert picture description here

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

Insert picture description here
Then follow the English prompts to install the version you need

  • Take the version I installed as an example

Insert picture description here

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

Guess you like

Origin blog.csdn.net/weixin_43956521/article/details/110852291