Home  >  Article  >  Web Front-end  >  How to uninstall vuejs

How to uninstall vuejs

青灯夜游
青灯夜游Original
2021-09-15 16:36:562874browse

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 .

How 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:

How to uninstall vuejs

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn