It is very easy to get started with Vue CLI. Perform these steps:
- Use npm to install it globally:
$ npm i -g @vue/cli
- Create a project when you want to:
$ vue create my-project
- You will be prompted to pick a preset – default or manually select features, as follows:
Vue CLI v4.4.6
? Please pick a preset: (Use arrow keys)
> default (babel, eslint)
Manually select features
- Choose the default preset as we can install what we need manually later on. You should see something similar to the last part of the following output in your terminal when the installation is complete:
Successfully created project my-project.
Get started with the following commands:
$ cd my-project
$ npm run serve
- Change your directory to my-project and start the development process:
$ npm run serve
You should get something similar to this:
DONE Compiled successfully in 3469ms
App running at:
- Local: http://localhost:8080/
- Network: http://199.188.0.44...