Uninstall unused packages in Node.js

  • Remove/Update the packages from package.json
  • npm prune

It will remove all the uninstall the packages from the node_modules which are not part of package.json


You may also like...