Skip to content

Instantly share code, notes, and snippets.

@mchandleraz
Created August 3, 2020 15:45
Show Gist options
  • Save mchandleraz/b9511beb5700c1d18e91187d549fbdb3 to your computer and use it in GitHub Desktop.
Save mchandleraz/b9511beb5700c1d18e91187d549fbdb3 to your computer and use it in GitHub Desktop.
* `cache-clean` clears watchman and npm caches, removes all `react` directories from the system TMP directory, and resets the React Native JS Packager cache.
* `cache-flush` is `cache-clean` + removes all npm modules from disk and re-installs with yarn.
"cache-clean": "watchman watch-del-all && rm -rf $TMPDIR/haste-map-react-native-packager-* && rm -rf $TMPDIR/react-* && yarn start -- --reset-cache",
"cache-flush": "watchman watch-del-all && rm -rf $TMPDIR/haste-map-react-native-packager-* && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && yarn cache clean && yarn && yarn start -- --reset-cache",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment