Setup Vue Cli 3

Aug 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.

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:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.