뚜sh뚜sh

[MAC] React Native 개발환경 설정 본문

Framework/React Native

[MAC] React Native 개발환경 설정

뚜sh뚜sh 2022. 8. 1. 09:30

1. yarn 설치

brew install yarn

 

 

2. 다음 명령어를 쳐서 expo-cli를 설치

yarn global add expo-cli

하려 했으나 

 

"The engine "node" is incompatible with this module.  Expected version ">=12 <=16"." 이라는 에러가 뜸

 

 

< 해결방법 > 

yarn config set ignore-engines true

를 입력한 후  2번 명령어를 입력하면 잘 설치됨

하지만 단계를 거칠수록 <warning>이 떠서 노드를 아예 삭제하고 lts 버전으로 다시 깔고 1번부터 다시 실행했더니 <warning>없이 잘됨  

 

 

3. 새로 만들 프로젝트 이름 설정

expo init 프로젝트이름

 

 

4. 프로젝트 시작

yarn start

 

Comments