마을 이야기

  • Home
  • 마을 이야기

 

제목source-expo expo go에서 npx expo start 실행 안될땨2026-01-25 12:14
작성자 Level 10

이 에러는 말 그대로 프로젝트에 expo 패키지가 현재 설치돼 있지 않아서(= node_modules/expo 없음) expo-doctor/Metro 체크가 SDK 버전을 판단 못해 터진 겁니다.

그리고 앞에서 겪었던 문제( Metro 0.80 vs 0.82 섞임 )까지 같이 해결하려면 **Expo SDK 53이 기대하는 버전으로 “재정렬 + 클린 설치”**를 한 번에 해주는 게 가장 빠릅니다. (SDK 53은 RN 0.79 기반이고, React 19 조합입니다. / RN 0.79는 Metro 0.82로 shipped 됩니다. )

아래를 그대로 복붙해서 실행하세요(프로젝트 루트에서):

# 0) (중요) RN 0.74 계열 dev 툴이 metro 0.80 라인을 끌고 와 충돌을 만들 수 있어 제거 npm remove -D @react-native/babel-preset @react-native/eslint-config @react-native/metro-config @react-native/typescript-config # 1) Expo SDK 53 권장 패치로 맞추기 (doctor가 요구한 ~53.0.25 / RN 0.79.6) npm pkg set dependencies.expo="~53.0.25" npm pkg set dependencies.react-native="0.79.6" npm pkg set dependencies.react="19.0.0" # 2) React 19.0.0에 맞춰 test renderer도 19.0.0으로 고정 (ERESOLVE 방지) npm pkg set devDependencies.react-test-renderer="19.0.0" npm pkg set "devDependencies.@types/react-test-renderer"="19.1.0" # 3) 클린 설치 rm -rf node_modules package-lock.json npm install # 4) Expo가 요구하는 버전으로 나머지 자동 정렬 npx expo install --fix # 5) 캐시 비우고 실행 npx expo start -c
  • expo ~53.0.25는 SDK 53 라인의 패치 버전입니다.

  • SDK 53은 RN 0.79 / React 19 조합입니다.


그래도 Metro 관련 에러가 다시 나면(= 누군가가 metro 0.80을 계속 끌고 옴)

범인 패키지를 바로 찾으면 됩니다:

npm why metro metro-config metro-resolver @expo/metro-config npm ls metro metro-config metro-resolver @expo/metro-config

출력 결과를 그대로 붙여주시면, “어떤 패키지가 metro 0.80을 강제하는지” 딱 집어서 정리해드릴게요.


(확인) metro.config.js는 Expo 방식으로 확장돼 있어야 합니다

SDK 53부터 Metro 설정 관련 변경점이 있어서, 커스텀 metro.config.js가 있으면 반드시 @expo/metro-config를 확장해야 안정적입니다.

가장 기본 형태는 이거예요:

const { getDefaultConfig } = require("@expo/metro-config"); module.exports = getDefaultConfig(__dirname);

일단 위 “클린 설치”를 먼저 하고, 그 다음 npx expo-doctor@latest --verbose 결과를 보내주시면 남은 4개 체크 실패도 같이 정리해드릴게요.

댓글
자동등록방지
(자동등록방지 숫자를 입력해 주세요)

At vero eos et accusamus et iusto odio digni goikussimos ducimus qui to bonfo blanditiis praese. Ntium voluum deleniti atque.

We understand the importance of approaching each work integrally and believe in the power of simple.

Shopping Cart (0 items)

Subscribe to our newsletter

Sign up to receive latest news, updates, promotions, and special offers delivered directly to your inbox.
No, thanks