Skip to content

Instantly share code, notes, and snippets.

@cancerberoSgx
Last active June 5, 2025 18:38
Show Gist options
  • Save cancerberoSgx/1892ada276992f78f488a43b3a430c9b to your computer and use it in GitHub Desktop.
Save cancerberoSgx/1892ada276992f78f488a43b3a430c9b to your computer and use it in GitHub Desktop.
remove node_modules and package-lock.json recursively
find . -name "node_modules" -exec rm -rf '{}' +; find . -name "package-lock.json" -exec rm -rf '{}' +;
@toddpi314
Copy link

Good snippet brother. Thanks for sharing.

@shubhamp-sf
Copy link

Thank you!

@cchubb-silvertree
Copy link

Gracias

@ExtronOliver
Copy link

Can confirm this works 🙂 Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment