Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created May 27, 2020 05:34
Show Gist options
  • Save repodevs/59db426ea7fd821ebb79faad45fea948 to your computer and use it in GitHub Desktop.
Save repodevs/59db426ea7fd821ebb79faad45fea948 to your computer and use it in GitHub Desktop.
Remove unnecessary files from node_modules
# Install `node-prune` from https://github.com/tj/node-prune
curl -sf https://gobinaries.com/tj/node-prune | sh
# Find all `node_modules` directory
# and prune it.
find . -name "node_modules" -type d -exec node-prune {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment