kmes055 / AutoDrawer

Capstone project in dept. of CS. Application for designers, artists using TextureGAN, DisgoGAN
0 stars 1 forks source link

unable to resolve react-native-navigation from app.js #46

Closed hacking-racoon closed 4 years ago

hacking-racoon commented 4 years ago

master 브랜치에서 pull한 애플리케이션이 실행되지 않는 현상.

해결 방법

  1. node_modules 폴더를 지운 뒤 npm install

원인

깃허브에서 node_modules 폴더는 자동으로 ignore된다.

너무 파일, 디렉토리가 많아서 비효율적이기 때문이다.

따라서 환경을 동일하게 해주기 위해서 pull해오고 나서 node_modules를 삭제하고

npm install 명령어를 통해 재설정하면

훌륭하게 실행된다.

hacking-racoon commented 4 years ago

node_modules 폴더가 자꾸만 문제가 있다고 발생.

아예 새로운 폴더에 git clone 이용하여 master branch 복사해봤는데,

node_modules 폴더 자체가 없음

모종의 이유로 빠진 것 같음

hacking-racoon commented 4 years ago

해결완료.

새로운 폴더에 git clone 해와서 알게 됐는데,

원래 깃헙에서 add할 때 자동으로 node_modules 폴더는 제외됨.

왜냐하면 node_modules는 너무 크기가 크고 파일들이 많다.

효율성을 위해 해당 폴더를 빼고. 실행하기 전에 npm install을 해주는게 국룰임.

원래는 왜 몰랐냐면, 내 원래 브랜치에 node_modules 폴더가 원래 있었고,

jy_frontend 브랜치것과 내용이 다른 상황에서 존재만 하니깐

reactive-native-navigator 문제라고 발생한것

12313 에러 ㅈ