Skip to content

chore(nest): initialize project with NestJS CLI #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2025
Merged

Conversation

Cein1
Copy link
Collaborator

@Cein1 Cein1 commented May 15, 2025

작업 유형

  • 기능 추가 (feat)
  • 리뷰 반영 (review-fix)
  • 리팩토링 (refactor)
  • 버그 수정 (fix)
  • 코드 스타일 수정 (style)
  • 문서 수정 (README, PR 템플릿, API 명세 등) (docs)
  • 기타 작업 (패키지 설치 등) (chore)

해결하려는 문제가 무엇인가요?

  • NestJS 프레임워크 사용을 위한 설치
  • .gitignore 에 node_modules/ 추가를 잊어서 stage 에 포함됨
  • README.md 파일이 기존 프로젝트 내부에서 NestJS 설치하는 과정에서 다른 내용으로 덮어씌워짐
  • CommonJS 대신 ESM 사용하고자 함

어떻게 해결했나요?

  • NestJS 설치시 node LTS 버전으로 진행하는 것이 원활함. 현재 node LTS 버전은 22
  • NestJS 공식문서 '운영 체제에 Node.js (버전 20 이상)가 설치되어 있는지 확인하세요' 기재. 그러나 버전 20 으로 설치 시도했을 때 NestJS 설치가 멈추는 현상 발생
  • 결국 node lts 버전 22에서 정상 설치
  • git rm -r --cached node_modules 이후 git status (--ignored) 로 확인
  • README.md 파일 변경내역 확인해서 이전 파일로 reset
  • package.json에 type: module 설정
  • tsconfig.json에 module, moduleResolution nodenext 설정
  • tsconfig.json 에 기타 설정

Attachment

- NestJS 설치시 node 버전은 'nvm install --lts' 를 따르자
- NestJS 공식문서 '운영 체제에 Node.js (버전 20 이상)가 설치되어 있는지 확인하세요'
- node 버전 20 으로 설치 시도했을 때 NestJS 설치가 멈추는 현상 발생했다
- node lts 버전 22에서 정상 설치됐다
@Cein1 Cein1 requested a review from f-lab-elkein May 15, 2025 13:10
@Cein1 Cein1 changed the base branch from main to develop May 15, 2025 13:11
- package.json에 type: module 설정
- tsconfig.json에 module, moduleResolution nodenext 설정
- tsconfig.json 에 기타 설정
Copy link
Collaborator

@f-lab-elkein f-lab-elkein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고많으셨습니다

@Cein1 Cein1 merged commit 333b67a into develop May 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants