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.
cd <PROJECT_NAME>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.
References: