Setup Vue Cli 3

August 24, 2018

Uninstall vue-cli 2.x.

sudo npm uninstall vue-cli -g

Vue CLI (vue-cli 3.x) requires Node.js version 8.9 or above (8.11.0+ recommended). You might need nvm if you are running a lower version of Node.js.

Install vue-cli 3.x

npm install -g @vue/cli

Check vue version

vue --version

Create new project.

vue create <PROJECT_NAME>

Start development server.

npm run serve

View/Edit/Update project configuraion.

vue ui

If you need to edit vue or webpack configuration, create vue.config.js in the project directory.


This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.