[3] JAVA_HOME is set to an invalid directory

Simune·2024년 1월 17일

React Native Errors

목록 보기
3/9

ERROR: JAVA_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.


해결 방법

참고: stackoverflow

  1. echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile
  2. source ~/.bash_profile
  3. npm run android
profile
👩🏻‍💻🌱

0개의 댓글