How to uninstall vuejs: 1. Open the cmd command window; 2. In cmd, execute the "npm uninstall -g @vue/cli" or "yarn global remove @vue/cli" command to uninstall vuejs .
The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.
To uninstall vuejs, you need to use npm or yarn tools. Method:
1. Open the cmd command window
2. In cmd, Run the following command to uninstall vue.js:
npm uninstall -g @vue/cli 或 yarn global remove @vue/cli
Note:
The package name of Vue CLI has been changed from vue-cli to @vue/cli.
If an old version of vue-cli (1.x or 2.x) has been installed globally, you need to pass npm uninstall vue-cli -g
or yarn global remove vue- cli
Uninstall the old version
Install vuejs (cli3)
Installation command:
npm install -g @vue/cli 或 yarn global add @vue/cli
Installation error problem:
Solution:
Delete node_modules in the file path named in no such file or directory, access and then reinstall it
Related recommendations:《vue.js tutorial》
The above is the detailed content of How to uninstall vuejs. For more information, please follow other related articles on the PHP Chinese website!