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

Answer by last-indigo for How to uninstall npm modules in node js?

$
0
0

To remove packages in node_modules/ in bulk, you could also remove them from package.json, save it, and then run npm prune on the terminal.

This will remove those packages, which exist in the filesystem, but are not used/declared package.json.

P.S> This is particularly useful on Windows, as you may often encounter problems with being unable to delete some files due to the "exceeded path length limit".


Viewing all articles
Browse latest Browse all 54

Trending Articles



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