Quantcast
Channel: How can I uninstall npm modules in Node.js? - Stack Overflow
Viewing all articles
Browse latest Browse all 54

Answer by codemirror for How to uninstall npm modules in node js?

$
0
0

Update npm 5:

As of npm 5.0.0, installed/uninstalled modules are added/removed as a dependency by default, so the --save option is no longer needed.

run

npm uninstall <package>

for example:

npm uninstall mongodb

It will remove the module from node_modules folder and package.json file also


Viewing all articles
Browse latest Browse all 54

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>