개발
구름 ide expo Web-View 에러
1223v
2022. 10. 14. 14:27
구름에서 제공되는 react-native는 버젼이 업데이트되어 조코딩님이 하시는 방법으로 진행할 경우 에러가 난다.
그래서 react-native의 node 버젼을 다운그레이드 시켜야되는데, 이는 구름 포럼을 보면 확인할 수 있다.
react 컨테이너 node 버전 업그레이드 안됩니다
노드 버전 확인 : node -v npm 버전 확인 : npm -v node 버전 업 : curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs 다시 버전 확인하면 버전 업 되어있습니다
forum.goorm.io
버젼 다운그레이드로 12.x 버젼을 설치
# node가 어디에 설치되어있는지 확인
whereis node
# node 관련 모든 경로 삭제
rm -rf /usr/bin/node
rm -rf /usr/include/node
rm -rf /usr/local/bin/node
rm -rf /usr/local/include/node
rm -rf /usr/share/man/man1/node*
rm -rf /usr/local/lib/node_modules/
rm -rf /usr/local/bin/npm
rm -rf ~/.npm
rm -rf ~/.node-gyp
# 노드 삭제
sudo apt remove nodejs -y
# 노드 설치
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs
이 과정을 하고 나서
앱 내 방향 움직임 부드러움 설치
npm install @react-native-community/viewpager --save
expo 웹뷰 다시 설치
expo install react-native-webview
후 실행을 하면 에러없이 expo가 잘 실행되는 것을 볼 수 있다.
728x90