Uninstall unused packages in Node.js

  • Remove/Update the pack­ages from package.json
  • npm prune

It will remove all the unin­stall the pack­ages from the node_modules which are not part of package.json


You may also like...