# Yarn 대신 pnpm으로 넘어간 3가지 이유

> Clean Markdown view of GeekNews topic #8683. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8683](https://news.hada.io/topic?id=8683)
- GeekNews Markdown: [https://news.hada.io/topic/8683.md](https://news.hada.io/topic/8683.md)
- Type: news
- Author: [hiddenest](https://news.hada.io/@hiddenest)
- Published: 2023-03-13T11:36:25+09:00
- Updated: 2023-03-13T11:36:25+09:00
- Original source: [hiddenest.dev](https://hiddenest.dev/yarn-pnpm-3)
- Points: 9
- Comments: 2

## Topic Body

[Airbridge](https://airbridge.io)의 프론트엔드에서 사용하는 패키지 매니저를 Yarn Berry에서 pnpm으로 옮긴 후 1년 동안 사용하며 느낀 점들을 정리해본 글입니다.  
  
#### Yarn Berry에서 느낀 불편한 점  
- Yarn PnP가 Git에 지속적으로 주는 부하  
- Ghost Dependency와의 끈질긴 싸움  
- Yarn Workspace의 자잘한 버그들  
  
#### pnpm을 적용함으로서 얻은 해결법  
- 배포 과정 중 패키지 설치 시간이 30초 ~ 1분 정도 빨라짐  
  - 전역 저장소(Virtual Store)에 패키지 저장 / 프로젝트의 `node_modules`와는 symlink로 연결  
  - 중복된 패키지를 설치하지 않아 저장 공간과 네트워크 절약  
- 자동으로 패키지간 링크가 되어 보다 간단하게 모노레포 셋업  
- `patch-package`, `dedupe` 등 Yarn Berry에서 사용했던 기능들 거의 그대로 사용 가능

## Comments



### Comment 15170

- Author: [hidden]
- Created: 2023-03-13T15:20:36+09:00
- Points: 1

[숨김 처리된 댓글입니다]

### Comment 15171

- Author: hiddenest
- Created: 2023-03-13T18:52:33+09:00
- Points: 1
- Parent comment: 15170
- Depth: 1

아마 그런 부분도 있을 것 같고, Yarn Berry의 경우 플러그인 시스템이 강력하다는 점도 한몫하는 것 같아요.
