
node_modules폴더는 용량이 크기때문에 .gitignore에 추가해 github에 업로드 되지 않게 한다.
프로젝트의 패키지가 필요한 경우 package.json에서 dependencies와 devDependencies에 있는 패키지들은
$ npm i
를 통해 설치할 수 있다.
만약 .gitignore에 node_modules를 추가하기 전에 push를 했다면 다음과 같은 명령어로 해결할 수 있다.
$ git rm -r --cached node_modules
$ git commit -m "Deleted node_modules"
$ git push origin main