Framework/React & RN

[RN] 자주 쓰이는 단축키, 사이트 모음

Joonfluence 2022. 8. 22.

본론

환경설정 방법

Setting up the development environment · React Native - 링크

Xcode 빌드 캐시 삭제

Windows : Shift+Command+K
Mac : Option+Shift+Command+K

완전 삭제

~/Library/Developer/Xcode/DerivedData

문제 있는 프로젝트 삭제

Pods Dependency Error

rm -rf node_modules && yarn install && cd ios && rm -rf Pods && pod install && cd ..

React Dependency Error

npm install --force npm install --legacy-peer-deps

--force를 하면 package-lock.json에 몇가지의 다른 의존 버전들을 추가한다.
--legacy를 하면 peerDependency가 맞지 않아도 일단 설치한다.

Pods Install Error

sudo arch -x86_64 gem install ffi arch -x86_64 pod install arch -x86_64 pod install --repo-update

Terminating a process on port 8081

Run the following command to find the id for the process that is listening on port 8081:

sudo lsof -i :8081

Then run the following to terminate the process.

kill -9 <PID>

참고한 사이트

https://www.korecmblog.com/ERESOLVE-unable-to-resolve-dependency-tree/
https://velog.io/@yonyas/Fix-the-upstream-dependency-conflict-installing-NPM-packages-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0%EA%B8%B0

반응형

댓글