Skip to content

Commit

Permalink
expo cache clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
jserrao authored Sep 30, 2021
1 parent 394512e commit 36d0574
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions front-end.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@
19. `nvm install NEW_VERSION --reinstall-packages-from=OLD_VERSION` (helps install the latest LTS release without losing your last batch of stuff)
20. `nvm alias default VERSION` (tells your computer what default node to use)
21. `xcrun simctl list devices` (which xcode devices are available on your mac - requires full xcode to be installed)

## Expo / React Native

To clear cache, as of Expo SDK v42.0.0 on MacOS 11.5.2 (Big Sur):

1. `rm -rf node_modules` (dumps node_modules)
2. `yarn cache clean` (runs cache cleaner for yarn)
3. `yarn` (reinstalls deps)
4. `watchman watch-del-all` (kills cache in live updated watchman)
5. `rm -fr $TMPDIR/haste-map-*` (to be honest, I'm not really sure)
6. `rm -rf $TMPDIR/metro-cache` (works to clear metro builder cache)
7. `expo start --clear` (restarts expo server and clears it's cache - `.expo` folder in your file explorer)

0 comments on commit 36d0574

Please sign in to comment.