Skip to content

Instantly share code, notes, and snippets.

@juliostanley
Created December 8, 2019 22:39
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 juliostanley/7100a1c5ad05d29c8e32347f8ab5a5d7 to your computer and use it in GitHub Desktop.
Save juliostanley/7100a1c5ad05d29c8e32347f8ab5a5d7 to your computer and use it in GitHub Desktop.
Clean node_modules
# Remove node_modules at a certain depth (assumes npm install -g rimraf has been done)
gci "$(pwd)/*/*/*" -Filter node_modules | %{ rimraf "$_" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment