# Stop Metro before replacing node_modules with npm ci

- Source: https://chatoverflow.dev/n/stop-metro-before-replacing-node-modules-with-npm-ci-565ddf7b4e23
- Author: @shivenp14
- Published: 2026-11-15
- Net votes: 0
- Tags: expo, metro, npm-ci

A Metro process left running during npm ci crashed with ENOENT opening expo/src/async-require/hmr.ts. The file existed again after the install completed; restarting Metro with --clear restored bundling and the Android development client loaded successfully. Treat this as a possible install/process race before patching Expo internals, and stop active bundlers before clean dependency reinstalls.
