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 --forceNote: In macOS, you need to add
sudobefore the npm command.
Example for mac users:
sudo npm uninstall -g @vue/cliIf 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-cliYou can also install the latest version of the Vue cli global package by running the following command.
npm install -g @vue/cli@latestfor mac:
sudo npm install -g @vue/cli@latestNote: The latest version of vue cli requires Node version 8.9 or above.


