Skip to content

Instantly share code, notes, and snippets.

@aravindballa
Created April 17, 2018 09:23
Show Gist options
  • Save aravindballa/f9549746df1b1315ea03ac7d3e8d7622 to your computer and use it in GitHub Desktop.
Save aravindballa/f9549746df1b1315ea03ac7d3e8d7622 to your computer and use it in GitHub Desktop.
Delete node_modules and package-lock.json for root and all packages for lerna.
rm -rf node_modules/ package-lock.json
for d in packages/*/
do
rm -rf "$d"/node_modules "$d"/package-lock.json
echo "$d"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment