Remove plugins with vue-cli3
Solution 1
I've asked about this (How does one uninstall a plugin? #2540) and it appears the current official advice is to issue an npm uninstall X
.
Solution 2
I think you can just go to your package.json and remove the entry for the plugin/package,
delete the directory of your node_modules,
and then run.
npm install
Solution 3
It looks like you need to do it manually, I cannot find anything in the docs or CLI help that mentions removal of plugins. It is slightly more complicated than @alexandre-canijo says though. Besides the package.json there may be some config in your project folder. Check the src/plugins folder, and main.js.
Solution 4
Delete the vuetify stuff[1] from your package.json and then run:
npm prune
[1] Dependency vuetify
and dev dependencies vue-cli-plugin-vuetify
, vuetify-loader
...
Solution 5
You have to do it manually. It worked for me.
In my case, I just removed the plugin ("vue-cli-plugin-quasar": "^2.0.1",)
from devDependencies
in package.json
and ran npm install
.
sven
Updated on May 01, 2020Comments
-
sven about 4 years
Is there a way to remove plugins and its configuration with vue-cli3 in an existing project? For example I want to replace unit test plugin Mocha with Jest. I know how to add and invoke a new plugin but I cannot find how to remove one. Is it possible with vue-cli or do I need to do it manually?