Thief of Wealth

React Native 로 개발을 해보기 위해서,

expo라는 것을 사용해보기로 했다.

 

sudo npm install -g expo-cli 

로 설치후에 

 

expo를 실행했더니 expo not found 라는 어처구니 없는 에러가 나온다.

 

검색해보니 다들 자주 겪는 에러인것 같다.

 

결국엔 환경변수 문제이다.

 

 

npm이면 npm, yarn이면 yarn에 맞게

 

export PATH=$PATH:~/.npm-global/bin

 

으로 설정해주면 된다. (재설치도 해보자)

 

 

https://stackoverflow.com/questions/51775496/exp-command-not-found-how-do-i-add-expo-cli-to-path

 

"exp: command not found" How do I add expo cli to path?

I installed the expo cli with npm i -g exp then I run exp and I get -bash: exp: command not found I'm guessing I didn't add exp to path. So how do I do this properly? Nothing I've tried so ...

stackoverflow.com

 

 

profile on loading

Loading...