Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- PostgresDB
- sql
- 파이썬
- 자바스크립트
- MongoDB
- DATABASE
- python
- postgres
- 밴쿠버응급실
- 서브쿼리
- MySQL
- Collections
- DBFilter
- 몽고디비
- javascript
- python데이터베이스연동
- subquery
- Join
- cursor()
- 데이터베이스
- SubqueryFilter
- sqlite3
- onetoone
- insert_into
- PreparedStatement
- PostgreSQL
- query
- statement
- DB
- insertOne
Archives
- Today
- Total
새벽코딩
node modules 삭제 및 gitignore 본문
- node modules 삭제
node modules은 많은 파일이 포함되어 있어서 삭제시 상당한 시간이 소요된다.
하지만, 터미널에서 간단하게 삭제하는 방법을 소개한다.
먼저, 패키지를 설치한 후에
npm install rimraf -g
아래 명령어를 입력하면, 순식간에 삭제된다.
rimraf node_modules
- node modules을 git commit 시에 제외
또한, 리모트 repository에 올라가는 것을 막기위해서, 아래와 같이 하면 된다.
1) 프로젝트 최상위 위치에 .gitignore 파일 생성해준다. (맨앞에 점 주의)

2) .gitignore 파일안에 제외할 내용 입력 후 저장
지금의 경우 node_modules 폴더를 제외해야하므로, 아래와 같이 저장
/node_modules