Mac에서 Node.js + TypeScript 설치

1. nvm 설치

둘 중 하나 터미널에 복붙

url -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

2. node.js 설치

nvm install [설치하고 싶은 노드 버전]

3. TypeScript 설치

npm i typescript -g

4. Nest.js 설치

npm i -g @nestjs/cli

5. Nest.js 프로젝트 생성

Nest.js는 npm이 가장 잘 호환이 되기 때문에 npm 선택

nest new sparta-nest

? Which package manager would you ❤️  to use? (Use arrow keys)
❯ npm
  yarn
  pnpm

+ Recent posts