본문 바로가기
C.W.K.
Stream
Lesson 02 of 05 · published

Bun 설치

~7 min · bun, installation

Level 0입문자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

macOS에서는 두 가지 방식으로 Bun을 설치할 수 있고 둘 다 한 번에 끝나.

권장 방식인 curl 설치 도구curl -fsSL https://bun.sh/install | bash로 실행해. ~/.bun/bin/bun에 실행 파일을 놓고 해당 디렉터리를 셸 초기화 설정에 추가해. 터미널을 다시 열면 bun --version이 작동해.

Homebrew를 쓰려면 brew tap oven-sh/bun && brew install bun을 실행해. Homebrew 경로는 curl 방식보다 단계가 하나 더 있지만 Bun을 다른 도구와 함께 Brewfile로 관리할 수 있어.

업그레이드도 bun upgrade 한 줄이면 돼. Bun은 보통 1~2주마다 새 버전이 나올 만큼 배포가 빠르므로 자주 올리는 편이 좋아.

Code

두 가지 설치 경로·bash
# Path 1 — 공식 curl installer (가장 빠름)
curl -fsSL https://bun.sh/install | bash

# terminal 재시작, 검증
bun --version

# Path 2 — Homebrew
brew tap oven-sh/bun
brew install bun

# in-place 업그레이드
bun upgrade

External links

Exercise

curl 설치 도구로 Bun을 설치하고 'bun --version'으로 확인해. 이어서 hello.ts를 만들고 간단한 TypeScript 코드('const greeting: string = "hi"; console.log(greeting);')를 넣은 뒤 'bun hello.ts'를 실행해. 별도 컴파일이나 tsconfig 없이 바로 동작하는 순간 Bun의 가치가 선명해질 거야.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.