Skip to content

Instantly share code, notes, and snippets.

@simistern
Created March 24, 2020 16:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simistern/bb026e68877b6d49cb54e1740328159b to your computer and use it in GitHub Desktop.
Save simistern/bb026e68877b6d49cb54e1740328159b to your computer and use it in GitHub Desktop.
echo "Cleaning up node modules";
rm -rf node_modules;
npm install;
echo "Clearning all temp directories";
rm -rf $TMPDIR/react-native-packager-cache-*;
rm -rf $TMPDIR/metro-*;
rm -rf $TMPDIR/react-*;
rm -rf $TMPDIR/haste-*;
watchman watch-del-all;
echo "Cleaning up iOS folders"
cd ios;
rm -rf Pods;
rm -rf Podfile.lock;
rm -rf build;
pod install;
cd ..;
echo "cleanup android folder"
cd android;
rm -rf build;
rm -rf ~/Library/Developer/Xcode/DerrivedData
echo "PLEASE DELETE THE APP AND RESTART SIMULATOR after cache is reset";
cd ..;
npm start -- --reset-cache;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment