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
'개발 > Web Programming' 카테고리의 다른 글
TypeError: Cannot set property 'subscriptionServerOptions' of undefined (0) | 2020.07.26 |
---|---|
SyntaxError: The requested module 'graphql-yoga' does not provide an export named 'GraphQLServer' (0) | 2020.07.26 |
intellij 에서 plugin 창 열고 설치하기 (0) | 2020.01.15 |
Gradle variable name not initialized in the default constructor (0) | 2020.01.14 |
SpringBoot Caused by: java.lang.IllegalStateException 에러? (0) | 2020.01.10 |