Yarn

JavaScript 애플리케이션을 위한 빠르고 안정적이며 안전한 의존성 관리 도구입니다.

Yarn은 npm의 단점을 해결하기 위해 만들어졌습니다. 패키지를 캐시하여 재다운로드를 방지합니다. 체크섬을 사용하여 무결성을 검증합니다. yarn.lock 파일을 통해 모든 머신에서 정확히 동일한 의존성이 설치되도록 보장합니다.

        graph LR
  Center["Yarn"]:::main
  Rel_npm["npm"]:::related -.-> Center
  click Rel_npm "/terms/npm"
  Rel_javascript["javascript"]:::related -.-> Center
  click Rel_javascript "/terms/javascript"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 5살도 이해할 수 있게 설명

Generated ELI5 content

🤓 Expert Deep Dive

Generated expert content

❓ 자주 묻는 질문

What is the difference between Yarn and npm?

Both manage dependencies, but Yarn historically focused on speed and deterministic installs, though npm has caught up.

What is yarn.lock?

A file that locks the versions of installed dependencies to ensure consistency across environments.

Who developed Yarn?

It was developed by Facebook (Meta) in collaboration with Exponent, Google, and Tilde.

📚 출처