Skip to content

Instantly share code, notes, and snippets.

@orkaa
Created March 2, 2016 21:19
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 orkaa/98073c9cefc9e5aa0494 to your computer and use it in GitHub Desktop.
Save orkaa/98073c9cefc9e5aa0494 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eu -o pipefail
APP_ROOT="$(dirname $(readlink -e $0))/.."
echo "Deleting .npm cache dirs"
find $APP_ROOT -depth -type d -name ".npm" -exec rm -rf {} \;
echo "Deleting every node_modules folder"
find $APP_ROOT -depth -type d -name "node_modules" -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment