---
title: "How do you clear the Metro bundler cache in React Native?"
description: "Restart Metro with the reset-cache flag when changes do not appear or modules fail to resolve, and clear watchman and node_modules if it persists."
url: "https://bugsee.com/answers/react-native/clear-the-metro-cache/"
---

# How do you clear the Metro bundler cache in React Native?

Start Metro with `npx react-native start --reset-cache`. For Expo projects use `npx expo start --clear`.

```bash
npx react-native start --reset-cache   # bare React Native
npx expo start --clear                  # Expo

# If it still misbehaves
watchman watch-del-all
rm -rf node_modules && npm install
cd ios && pod install && cd ..
```

Reach for a cache reset when edits do not show up, when you renamed or moved files and Metro still looks for the old path, or after switching branches with different dependencies. For native build problems, also clean the platform build (Xcode's Clean Build Folder, or `./gradlew clean` in the android folder).

## Related questions

- [How do you fix "Unable to resolve module" in React Native?](https://bugsee.com/answers/react-native/fix-unable-to-resolve-module/)
