[Vuejs]-Cant remove dependency from vue project

2👍

I would suggest to delete node-modules folder first and after that remove the package name from your package.json file. After that simply do a npm install and that should fix your problem. Before installing packages you could also do npm cache clean --force if you want but that does not change so much.

1👍

Try npm uninstall nameofDependency.
For example I installed a dependency for customizing a scroll bar npm install simplebar-vue –save, now I no longer need so I uninstalled it, using npm uninstall simplebar-vue which is the name of the dependency, then delete from your import from the main.js.

Leave a comment