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