LoginSignup
6
4

More than 3 years have passed since last update.

ReactNativeでキャッシュを綺麗にするコマンド

Last updated at Posted at 2019-04-13
 watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && yarn cache clean
react-native start --reset-cache

追記:

watchman watch-del-all && lsof -n -P -i :8081 -t | xargs kill && 
rm -rf $TMPDIR/metro-bundler-cache-* &&
rm -rf ~/Library/Developer/Xcode/DerivedData && 
sudo rm -rf '~/Library/Developer/Xcode/iOS\ DeviceSupport/*' && 
cd android && 
./gradlew clean cleanBuildCache && ./gradlew --stop &&
cd .. &&
rm -rf ios/build android/app/build ios/Pods node_modules
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4