Skip to content

Instantly share code, notes, and snippets.

@mdestafadilah
Last active February 28, 2023 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdestafadilah/0397ee54336aafc62b13148def4ae39b to your computer and use it in GitHub Desktop.
Save mdestafadilah/0397ee54336aafc62b13148def4ae39b to your computer and use it in GitHub Desktop.
REMOVE NODE_MODULES
find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \ ;
OR
rm -rf $(find / -type d -name node_modules);
OR
rm -rf $(find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \ );
SOURCE: https://dev.to/namaewayaman/delete-node-modules-like-a-pro-1m53/comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment