React Native
2025-07-09
Android) Build Sync, Output 에러 ~ Cannot run program "node": error=2, No such file or directory
안드로이드 스튜디오에서 node를 찾지 못하는 현상 해결 방법

RN 개발을 하다보면 느끼는데, Xcode도 정말 이상하지만 Android Studio도 참 이상하다.
아니 갑자기 왜 노드를 못찾냐구 !! (터미널에서 node -v으로 확인했음)
약간의 시간 낭비 후 아래 해결 방법을 정리 해본다. (요새 잘 되다 가끔 발생함, 주변 개발자도 같은 현상 재현됨 ㄷㄷ)
에러 내용
sync error
<!-- sync error -->
⚠️ Cause: error=2, No such file or directory
⚠️ A problem occurred starting process 'command 'node''
run error
<!-- run error -->
⚠️ org.gradle.process.internal.ExecException: A problem occurred starting process 'command "node"
⚠️ net.rubygrapefruit.platform.NativeException: Could not start 'node'
⚠️ java.io.lOException: Cannot run program "node" (in directory "/Users/Code/App/android"): error=2, No such file or directory
⚠️ java.io.lOException: error=2, No such file or directory
⚠️ com.android.builder.errors.EvallssueException: compileSdkVersion is not specified. Please add it to build.gradle
⚠️ Cause: error=2, No such file or directory
해결 방법
- Jetbrains Toolbox 버전 1.x를 통해 Android Studio를 설치한 경우,
open -a /Applications/Android\ Studio.app
실행 Jetbrains Toolbox 버전 2.x를 통해 Android Studio를 설치한 경우,open "/Applications/Android Studio.app”
실행 - Gradle 동기화 다시 작동함 !
참고 자료
Tags:
#Android Studio#Gradle#sync#output#node#bug