by Sai gowtham

How to uninstall the Vue CLI

In this tutorial, we are going to learn about how to uninstall the vue cli from your system.

Uninstalling the Vue CLI

  1. Run the following command in your terminal to uninstall the Vue cli 3 (global) package.
npm uninstall -g @vue/cli

#or

yarn global remove @vue/cli
  1. Now, clear the cache by using the below command.
npm clear cache --force

Note: In macOS, you need to add sudo before the npm command.

Example for mac users:

sudo npm uninstall -g @vue/cli

If you are using the older version of vue cli (1.x or 2.x), then you can uninstall it like this.

npm uninstall -g vue-cli

You can also install the latest version of the Vue cli global package by running the following command.

npm install -g @vue/cli@latest

for mac:

sudo npm install -g @vue/cli@latest

Note: The latest version of vue cli requires Node version 8.9 or above.

Top Udemy Courses

JavaScript - The Complete Guide 2020 (Beginner + Advanced)
JavaScript - The Complete Guide 2020 (Beginner + Advanced)
45,614 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
284,472 students enrolled
40 hours of video content
View Course
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
130,921 students enrolled
21 hours of video content
View Course