PageSourceSearch

https://classic.yarnpkg.com/en/docs

html yarnpkg.com collected 2026-09-24 06:03:17 UTC 26,687 bytes, 569 lines download raw bytes

1
2
3<!doctype html>
4<html lang="en">
5  <head>
6    <meta charset="utf-8">
7    <meta http-equiv="X-UA-Compatible" content="IE=edge">
8    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
9
10    <meta property="og:url" content="https://classic.yarnpkg.com/en/docs/" />
11    <meta property="og:site_name" content="Yarn"/>
12    <meta property="og:title" content="Yarn" />
13    <meta property="og:image" content="https://classic.yarnpkg.com/assets/og_image.png" />
14    <meta property="og:description" content="Fast, reliable, and secure dependency management." />
15
16    <title>Documentation | Yarn</title>
17    <meta name="description" content="Fast, reliable, and secure dependency management.">
18
19    <link rel="canonical" href="https://classic.yarnpkg.com/lang/en/docs/">
20    <link rel="icon" href="/favicon.ico" type="image/x-icon">
21
22    <link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Yarn">
23
24    
25      <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
26    
27    <link rel="stylesheet" href="/css/main.css?t=2026-06-09T16:39:33+00:00">
28    <meta name="google-site-verification" content="DIcCyEkVaGHm864NWzItnt2n6Gg7hz3l47RBIRyxvcQ" />
29  </head>
30  <body>
31    
32
33
34
35
36
37
38
39    
40
41
42
43
44
45
46
47
48    
49
50
51<div class="news-container">
52  <a class="news-overlay" href="https://yarnpkg.com/getting-started/migration"></a>
53
54  <div class="news-inner">
55    <div class="news-line">
56      <span class="news-highlight">Important:</span> This documentation covers Yarn 1 (Classic).
57    </div>
58    <div class="news-line">
59      For Yarn 2+ docs and migration guide, see yarnpkg.com.
60    </div>
61  </div>
62</div>
63
64    
65
66
67<nav class="navbar navbar-static-top navbar-light">
68  <div class="container">
69    <a href="/en/">
70      <svg class="logo navbar-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1154.8 518">
71  <defs>
72    <path id="main" d="
73      M718.6 257.8c-8 27.6-20.8 47.6-35.2 63.6V181c0-9.6-8.4-17.6-21.6-17.6-5.6 0-10.4 2.8-10.4 6.8 0 2.8 1.6 5.2 1.6 12.8v64.4c-4.8 28-16.8 54-32.8 54-11.6 0-18.4-11.6-18.4-33.2 0-33.6 4.4-51.2 11.6-80.8 1.6-6 13.2-22-6.4-22-21.2 0-18.4 8-21.2 14.8 0 0-13.4 47.6-13.4 90 0 34.8 14.6 57.6 41.4 57.6 17.2 0 29.6-11.6 39.2-27.6V351c-26.4 23.2-49.6 43.6-49.6 84 0 25.6 16 46 38.4 46 20.4 0 41.6-14.8 41.6-56.8V355c21.6-18.8 44.8-42.4 58.4-88.8.4-1.6.4-3.6.4-4 0-7.6-7.6-16.4-14-16.4-4 0-7.2 3.6-9.6 12zm-76.8 198c-6.4 0-10.4-9.6-10.4-22 0-24 8.8-39.2 21.6-52.4v42.8c0 7.6 1.6 31.6-11.2 31.6z
74      M833.4 301c-9.6 0-13.6-9.6-13.6-18.4v-66c0-9.6-8.4-17.6-21.6-17.6-5.6 0-10.4 2.8-10.4 6.8 0 2.8 1.6 5.2 1.6 12.8v61.6C785 291.4 777.8 301 767 301c-14 0-22.8-12-22.8-32.8 0-57.6 35.6-83.6 66-83.6 4 0 8 .8 11.6.8 4 0 5.2-2.4 5.2-9.2 0-10.4-7.6-16.8-18.4-16.8-48.8 0-95.2 40.8-95.2 107.6 0 34 16.4 60.4 47.6 60.4 15.2 0 26.4-7.2 34.4-16.4 6 9.6 16.8 16.4 30.8 16.4 34.4 0 50.4-36 57.2-62.4.4-1.6.4-2.4.4-2.8 0-7.6-7.6-16.4-14-16.4-4 0-8 3.6-9.6 12-3.6 17.6-10.8 43.2-26.8 43.2z
75      M949 327.4c34.4 0 50-36 57.2-62.4 0-.8.4-1.6.4-2.8 0-7.6-7.6-16.4-14-16.4-4 0-8 3.6-9.6 12-3.6 17.6-10.4 43.2-28.8 43.2-10.8 0-16-10.4-16-21.6 0-40 18-87.2 18-92 1.6-9.2-14.4-22.4-19.2-22.4h-20.8c-4 0-8 0-21.2-1.6-4.4-16.4-15.6-21.2-25.2-21.2-10.4 0-20 7.2-20 18.4 0 11.6 7.2 20 17.2 25.6-.4 20.4-2 53.6-6.4 69.6-3.6 13.6 17.2 28 22.4 11.2 7.2-23.2 9.6-58 10-73.6h34.8c-12.8 34.4-20 62.8-20 88.4 0 35.2 22.4 45.6 41.2 45.6z
76      M984.6 309.8c0 14.8 11.2 17.6 19.2 17.6 11.6 0 11.2-9.6 11.2-17.2v-58.4c2.8-31.6 27.6-66 39.2-66 7.6 0 8.4 10.4 8.4 22.8v81.2c0 20.4 12.4 37.6 33.6 37.6 34.4 0 51.4-36 58.2-62.4.4-1.6.4-2.4.4-2.8 0-7.6-7.6-16.4-14-16.4-4 0-8 3.6-9.6 12-3.6 17.6-11.8 43.2-27.8 43.2-10.4 0-10.4-14.8-10.4-18.4v-82.8c0-18.4-6.4-40.4-33.2-40.4-19.6 0-34 17.2-44.8 39.6v-18c0-9.6-8.4-17.6-21.6-17.6-5.6 0-10.4 2.8-10.4 6.8 0 2.8 1.6 5.2 1.6 12.8v126.8z
77      M259 0c143 0 259 116 259 259S402 518 259 518 0 402 0 259 116 0 259 0z"/>
78  </defs>
79
80  <use class="logo-primary" xlink:href="#main" x="0" y="0"/>
81
82  <path class="logo-secondary" d="M435.2 337.5c-1.8-14.2-13.8-24-29.2-23.8-23 .3-42.3 12.2-55.1 20.1-5 3.1-9.3 5.4-13 7.1.8-11.6.1-26.8-5.9-43.5-7.3-20-17.1-32.3-24.1-39.4 8.1-11.8 19.2-29 24.4-55.6 4.5-22.7 3.1-58-7.2-77.8-2.1-4-5.6-6.9-10-8.1-1.8-.5-5.2-1.5-11.9.4C293.1 96 289.6 93.8 286.9 92c-5.6-3.6-12.2-4.4-18.4-2.1-8.3 3-15.4 11-22.1 25.2-1 2.1-1.9 4.1-2.7 6.1-12.7.9-32.7 5.5-49.6 23.8-2.1 2.3-6.2 4-10.5 5.6h.1c-8.8 3.1-12.8 10.3-17.7 23.3-6.8 18.2.2 36.1 7.1 47.7-9.4 8.4-21.9 21.8-28.5 37.5-8.2 19.4-9.1 38.4-8.8 48.7-7 7.4-17.8 21.3-19 36.9-1.6 21.8 6.3 36.6 9.8 42 1 1.6 2.1 2.9 3.3 4.2-.4 2.7-.5 5.6.1 8.6 1.3 7 5.7 12.7 12.4 16.3 13.2 7 31.6 10 45.8 2.9 5.1 5.4 14.4 10.6 31.3 10.6h1c4.3 0 58.9-2.9 74.8-6.8 7.1-1.7 12-4.7 15.2-7.4 10.2-3.2 38.4-12.8 65-30 18.8-12.2 25.3-14.8 39.3-18.2 13.6-3.3 22.1-15.7 20.4-29.4zm-23.8 14.7c-16 3.8-24.1 7.3-43.9 20.2-30.9 20-64.7 29.3-64.7 29.3s-2.8 4.2-10.9 6.1c-14 3.4-66.7 6.3-71.5 6.4-12.9.1-20.8-3.3-23-8.6-6.7-16 9.6-23 9.6-23s-3.6-2.2-5.7-4.2c-1.9-1.9-3.9-5.7-4.5-4.3-2.5 6.1-3.8 21-10.5 27.7-9.2 9.3-26.6 6.2-36.9.8-11.3-6 .8-20.1.8-20.1s-6.1 3.6-11-3.8c-4.4-6.8-8.5-18.4-7.4-32.7 1.2-16.3 19.4-32.1 19.4-32.1s-3.2-24.1 7.3-48.8c9.5-22.5 35.1-40.6 35.1-40.6s-21.5-23.8-13.5-45.2c5.2-14 7.3-13.9 9-14.5 6-2.3 11.8-4.8 16.1-9.5 21.5-23.2 48.9-18.8 48.9-18.8s13-39.5 25-31.8c3.7 2.4 17 32 17 32s14.2-8.3 15.8-5.2c8.6 16.7 9.6 48.6 5.8 68-6.4 32-22.4 49.2-28.8 60-1.5 2.5 17.2 10.4 29 43.1 10.9 29.9 1.2 55 2.9 57.8.3.5.4.7.4.7s12.5 1 37.6-14.5c13.4-8.3 29.3-17.6 47.4-17.8 17.5-.3 18.4 20.2 5.2 23.4z"/>
83</svg>
84
85      <span class="sr-only">Yarn</span>
86    </a>
87
88    <div class="clearfix hidden-lg-up">
89      <button class="navbar-toggler hidden-lg-up float-right" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="exCollapsingNavbar2"
90        aria-expanded="false" aria-label="Toggle navigation"></button>
91    </div>
92
93    <div class="collapse navbar-toggleable-md" id="navbar">
94      <ul class="nav navbar-nav">
95        <li class="nav-item">
96          <a class="nav-link" href="/en/docs/getting-started">Getting Started</a>
97        </li>
98        <li class="nav-item">
99          <a class="nav-link" href="/en/docs">Docs</a>
100        </li>
101        <li class="nav-item">
102          <a class="nav-link" href="/en/packages">Packages</a>
103        </li>
104        <li class="nav-item">
105          <a class="nav-link" href="/blog">Blog</a>
106        </li>
107      </ul>
108
109      <ul class="nav navbar-nav navbar-nav-right float-lg-right">
110         
111        <li class="nav-item dropdown">
112          <a id="dropdownNavLanguage" class="nav-link dropdown-toggle" role="button" href="#" data-toggle="dropdown" aria-haspopup="true"
113            aria-expanded="false">
114            <svg class="language navbar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
115  <path d="M19.753 10.909c-.624-1.707-2.366-2.726-4.661-2.726-.09 0-.176.002-.262.006l-.016-2.063 3.525-.607c.115-.019.133-.119.109-.231-.023-.111-.167-.883-.188-.976-.027-.131-.102-.127-.207-.109-.104.018-3.25.461-3.25.461l-.013-2.078c-.001-.125-.069-.158-.194-.156l-1.025.016c-.105.002-.164.049-.162.148l.033 2.307s-3.061.527-3.144.543c-.084.014-.17.053-.151.143.019.09.19 1.094.208 1.172.018.08.072.129.188.107l2.924-.504.035 2.018c-1.077.281-1.801.824-2.256 1.303-.768.807-1.207 1.887-1.207 2.963 0 1.586.971 2.529 2.328 2.695 3.162.387 5.119-3.06 5.769-4.715 1.097 1.506.256 4.354-2.094 5.98-.043.029-.098.129-.033.207l.619.756c.08.096.206.059.256.023 2.51-1.73 3.661-4.515 2.869-6.683zm-7.386 3.188c-.966-.121-.944-.914-.944-1.453 0-.773.327-1.58.876-2.156a3.21 3.21 0 0 1 1.229-.799l.082 4.277a2.773 2.773 0 0 1-1.243.131zm2.427-.553l.046-4.109c.084-.004.166-.01.252-.01.773 0 1.494.145 1.885.361.391.217-1.023 2.713-2.183 3.758zm-8.95-7.668a.196.196 0 0 0-.196-.145h-1.95a.194.194 0 0 0-.194.144L.008 16.916c-.017.051-.011.076.062.076h1.733c.075 0 .099-.023.114-.072l1.008-3.318h3.496l1.008 3.318c.016.049.039.072.113.072h1.734c.072 0 .078-.025.062-.076-.014-.05-3.083-9.741-3.494-11.04zm-2.618 6.318l1.447-5.25 1.447 5.25H3.226z"/>
116</svg>
117 English
118            </a>
119            <div class="dropdown-menu" aria-labelledby="dropdownNavLanguage" id="dropdownNavLanguageMenu">
120               
121              <a href="/en/docs" class="dropdown-item active"
122                data-lang="en">
123                English
124                </a>
125                                  
126              <a href="/es-ES/docs" class="dropdown-item"
127                data-lang="es">
128                Español
129                </a>
130                      
131              <a href="/fr/docs" class="dropdown-item"
132                data-lang="fr">
133                Français
134                </a>
135                      
136              <a href="/id-ID/docs" class="dropdown-item"
137                data-lang="id">
138                Bahasa Indonesia
139                </a>
140                    
141              <a href="/ja/docs" class="dropdown-item"
142                data-lang="ja">
143                日本語
144                </a>
145                              
146              <a href="/pt-BR/docs" class="dropdown-item"
147                data-lang="pt-br">
148                Português (Brasil)
149                </a>
150                    
151              <a href="/ru/docs" class="dropdown-item"
152                data-lang="ru">
153                Русский
154                </a>
155                        
156              <a href="/tr/docs" class="dropdown-item"
157                data-lang="tr">
158                Türkçe
159                </a>
160                  
161              <a href="/uk/docs" class="dropdown-item"
162                data-lang="uk">
163                Українська
164                </a>
165                    
166              <a href="/zh-Hans/docs" class="dropdown-item"
167                data-lang="zh-cn">
168                中文
169                </a>
170                  
171              <a href="/zh-Hant/docs" class="dropdown-item"
172                data-lang="zh-hk">
173                繁體中文
174                </a>
175                 
176            </div>
177        </li>
178        
179
180        <li class="nav-item">
181          <a class="nav-link" href="https://discord.gg/yarnpkg">
182            <svg class="discord navbar-icon" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="discord-svg" fill="none" viewBox="0 0 71 55">
183  <title id="discord-svg">Discord</title>
184<path d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.
1841968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"/>
185</svg>
186
187            <span class="sr-only">Discord</span>
188          </a>
189        </li>
190        <li class="nav-item">
191          <a class="nav-link" href="https://twitter.com/yarnpkg">
192            <svg class="twitter navbar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 203.1" role="img" aria-labelledby="twitter-svg">
193  <title id="twitter-svg">Twitter</title>
194  <path d="M78.6 203.1c94.3 0 145.9-78.2 145.9-145.9 0-2.2 0-4.4-.1-6.6 10-7.3 18.7-16.3 25.6-26.5-9.4 4.1-19.3 6.9-29.5 8.1 10.7-6.4 18.7-16.5 22.5-28.4-10.1 6-21.1 10.2-32.6 12.4C191-4.5 158.5-5.5 137.8 14c-13.3 12.5-19 31.2-14.8 49C81.9 60.9 43.4 41.4 17.4 9.4 3.8 32.8 10.7 62.8 33.3 77.8c-8.2-.2-16.1-2.4-23.3-6.4v.6c0 24.4 17.2 45.4 41.2 50.3-7.6 2.1-15.5 2.4-23.2.9 6.7 20.9 26 35.2 47.9 35.6-18.2 14.3-40.6 22-63.7 22-4.1 0-8.2-.3-12.2-.7 23.5 15.1 50.7 23 78.6 23"/>
195</svg>
196
197            <span class="sr-only">Twitter</span>
198          </a>
199        </li>
200        <li class="nav-item">
201          <a class="nav-link" href="https://www.facebook.com/yarnpkg">
202            <svg class="facebook navbar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 266.9 266.9" role="img" aria-labelledby="facebook-svg">
203  <title id="facebook-svg">Facebook</title>
204  <path d="M252.2 0H14.7C6.6 0 0 6.6 0 14.7v237.4c0 8.1 6.6 14.7 14.7 14.7h127.8V163.5h-34.8v-40.3h34.8V93.6c0-34.5 21.1-53.2 51.8-53.2 14.7 0 27.4 1.1 31.1 1.6v36h-21.3c-16.7 0-20 7.9-20 19.6v25.7H224l-5.2 40.3h-34.7V267h68c8.1 0 14.7-6.6 14.7-14.7V14.7c.1-8.1-6.5-14.7-14.6-14.7z"/>
205</svg>
206
207            <span class="sr-only">Facebook</span>
208          </a>
209        </li>
210        <li class="nav-item">
211          <a class="nav-link" href="https://github.com/yarnpkg">
212            <svg class="github navbar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.6 31.8" role="img" aria-labelledby="github-svg">
213  <title id="github-svg">GitHub</title>
214  <path d="M16.3 0C7.3 0 0 7.3 0 16.3c0 7.2 4.7 13.3 11.1 15.5.8.1 1.1-.4 1.1-.8v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.1-1.1.6-1.8 1-2.2-3.6-.4-7.4-1.8-7.4-8.1 0-1.8.6-3.2 1.7-4.4-.1-.3-.7-2 .2-4.2 0 0 1.4-.4 4.5 1.7 1.3-.4 2.7-.5 4.1-.5 1.4 0 2.8.2 4.1.5 3.1-2.1 4.5-1.7 4.5-1.7.9 2.2.3 3.9.2 4.3 1 1.1 1.7 2.6 1.7 4.4 0 6.3-3.8 7.6-7.4 8 .6.5 1.1 1.5 1.1 3V31c0 .4.3.9 1.1.8 6.5-2.2 11.1-8.3 11.1-15.5C32.6 7.3 25.3 0 16.3 0z"/>
215</svg>
216
217            <span class="sr-only">GitHub</span>
218          </a>
219        </li>
220      </ul>
221    </div>
222  </div>
223</nav>
224
225    <div id="search">
226      <!-- Here to avoid flash of unstyled content on page load -->
227      <div class="ais-InstantSearch-root full-searchbox">
228        <form novalidate="" class="ais-SearchBox">
229          <div role="search" class="ais-SearchBox-form"></div>
230        </form>
231      </div>
232    </div>
233    <main>
234
235
236<div class="hero">
237  <div class="container">
238    <h1 class="hero-text display-4">Documentation</h1>
239
240    
241  </div>
242</div>
243
244<div class="container">
245  
246
247
248
249
250
251
252<div class="row">
253  <div class="col-12 col-lg-6 push-lg-3 mb-4 search">
254    <label class="search-label sr-only" for="algolia-doc-search">Search documentation</label>
255    <input class="search-input form-control" id="algolia-doc-search" type="search" placeholder="Search documentation" />
256  </div>
257</div>
258
259
260
261  
262
263  
264    <div class="row">
265  
266
267  
268  <div class="col-lg-4">
269    <a class="card guide-card" href="/en/docs/getting-started">
270      <div class="card-block">
271        <h4 class="card-title">Getting Started</h4>
272        <p class="card-text text-muted">
273          Never used a package manager before or just new to Yarn? Let's get you up and
274running in just a couple of minutes.
275
276          <span class="float-right text-primary">Read more</span>
277        </p>
278      </div>
279    </a>
280  </div>
281
282  
283
284  
285
286  
287
288  
289  <div class="col-lg-4">
290    <a class="card guide-card" href="/en/docs/yarn-workflow">
291      <div class="card-block">
292        <h4 class="card-title">The Yarn Workflow</h4>
293        <p class="card-text text-muted">
294          How do I use Yarn? There are basic workflows for both creating and consuming
295Yarn packages that will help you get productive quickly.
296
297          <span class="float-right text-primary">Read more</span>
298        </p>
299      </div>
300    </a>
301  </div>
302
303  
304
305  
306
307  
308
309  
310  <div class="col-lg-4">
311    <a class="card guide-card" href="/en/docs/cli/">
312      <div class="card-block">
313        <h4 class="card-title">CLI Commands</h4>
314        <p class="card-text text-muted">
315          Yarn is executed through a rich set of commands allowing package
316installation, administration, publishing, and more.
317
318          <span class="float-right text-primary">Read more</span>
319        </p>
320      </div>
321    </a>
322  </div>
323
324  
325    </div>
326  
327
328  
329
330  
331    <div class="row">
332  
333
334  
335  <div class="col-lg-4">
336    <a class="card guide-card" href="/en/docs/migrating-from-npm">
337      <div class="card-block">
338        <h4 class="card-title">Migrating from npm client</h4>
339        <p class="card-text text-muted">
340          Yarn interops directly with many features of npm, including its package
341metadata format, allowing for a painless migration.
342
343          <span class="float-right text-primary">Read more</span>
344        </p>
345      </div>
346    </a>
347  </div>
348
349  
350
351  
352
353  
354
355  
356  <div class="col-lg-4">
357    <a class="card guide-card" href="/en/docs/creating-a-package">
358      <div class="card-block">
359        <h4 class="card-title">Creating a Package</h4>
360        <p class="card-text text-muted">
361          Creating and publishing a yarn package can be done with just a few commands
362and configuration settings, leaving you to focus on your actual code.
363
364          <span class="float-right text-primary">Read more</span>
365        </p>
366      </div>
367    </a>
368  </div>
369
370  
371
372  
373
374  
375
376  
377  <div class="col-lg-4">
378    <a class="card guide-card" href="/en/docs/dependencies">
379      <div class="card-block">
380        <h4 class="card-title">Dependencies & Versions</h4>
381        <p class="card-text text-muted">
382          Using Yarn you'll be working with dependencies all the time. Let's go through
383the different types and versions of dependencies.
384
385          <span class="float-right text-primary">Read more</span>
386        </p>
387      </div>
388    </a>
389  </div>
390
391  
392    </div>
393  
394
395  
396
397  
398    <div class="row">
399  
400
401  
402  <div class="col-lg-4">
403    <a class="card guide-card" href="/en/docs/configuration">
404      <div class="card-block">
405        <h4 class="card-title">Configuration</h4>
406        <p class="card-text text-muted">
407          Learn how to use package.json to configure your packages and dependencies.
408
409          <span class="float-right text-primary">Read more</span>
410        </p>
411      </div>
412    </a>
413  </div>
414
415  
416
417  
418
419  
420
421  
422  <div class="col-lg-4">
423    <a class="card guide-card" href="/en/docs/offline-mirror">
424      <div class="card-block">
425        <h4 class="card-title">Offline Mirror</h4>
426        <p class="card-text text-muted">
427          Maintain offline copies of your packages for more repeatable and reliable
428builds.
429
430          <span class="float-right text-primary">Read more</span>
431        </p>
432      </div>
433    </a>
434  </div>
435
436  
437
438  
439
440  
441
442  
443  <div class="col-lg-4">
444    <a class="card guide-card" href="/en/docs/workspaces">
445      <div class="card-block">
446        <h4 class="card-title">Workspaces</h4>
447        <p class="card-text text-muted">
448          Link together your projects for easier maintenance.
449
450          <span class="float-right text-primary">Read more</span>
451        </p>
452      </div>
453    </a>
454  </div>
455
456  
457    </div>
458  
459
460  
461
462  
463    <div class="row">
464  
465
466  
467  <div class="col-lg-4">
468    <a class="card guide-card" href="/en/docs/pnp">
469      <div class="card-block">
470        <h4 class="card-title">Plug'n'Play</h4>
471        <p class="card-text text-muted">
472          Install your projects in a safer and faster way.
473
474          <span class="float-right text-primary">Read more</span>
475        </p>
476      </div>
477    </a>
478  </div>
479
480  
481
482  
483
484  
485
486  
487  <div class="col-lg-4">
488    <a class="card guide-card" href="/en/org">
489      <div class="card-block">
490        <h4 class="card-title">Yarn Organization</h4>
491        <p class="card-text text-muted">
492          The Yarn organization is a collaboration of many companies and
493individuals dedicated to improving your package management experience.
494
495          <span class="float-right text-primary">Read more</span>
496        </p>
497      </div>
498    </a>
499  </div>
500
501  
502
503
504</div>
505</main>
506    
507
508
509<hr class="footer-divider">
510
511<div class="container">
512  <footer class="footer">
513    <div class="footer-left">
514      <span class="footer-item">Yarn</span>
515      <span class="footer-item"><a href="https://github.com/yarnpkg/yarn/blob/master/LICENSE">Distributed under BSD License</a></span>
516      <span class="footer-item"><a href="/en/org/code-of-conduct">Code of Conduct</a></span>
517    </div>
518
519    <div class="footer-right">
520      
521
522      
523        <span class="footer-item"><a href="https://github.com/yarnpkg/website/edit/master/lang/en/docs/index.md">Edit this page</a></span>
524      
525    </div>
526  </footer>
527</div>
528<script>
vendor: 339 bytes, lines 528-534
528
529  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
530  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
531  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
532  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
533
534  ga('create', '
534UA-85522875-1
vendor: 38 bytes, lines 534-535
534', 'auto');
535  ga('send', 'pageview');
536</script>
536
537
538
539    
540<script>
541  var i18n_default = {"search_placeholder":"Search packages (i.e. babel, webpack, react…)","search_by_algolia":"Search by Algolia","search_by_read_more":"read how it works","no_package_found":"No package {name} was found","no_results_docsearch":"Were you looking for something in the {documentation_link}?","documentation":"documentation","downloads_in_last_30_days":"{count} downloads in the last 30 days","npm_page_for":"npm page for {name}","repository_of":"{provider} repository of {name}","npm":"npm","github":"GitHub","gitlab":"GitLab","bitbucket":"Bitbucket","homepage":"Homepage","deprecated":"deprecated","result_stats":"found {number_packages} packages in {time_search}ms","time_ago":"{time_distance} ago","last_updated":"last updated {update_date}","detail":{"over_a_year_ago":"over a year ago","less_than_a_week_ago":"less than a week ago","one_week_ago":"one week ago","weeks_ago":"{count} weeks ago","activity":"Activity","commits_last_three_months":"Commits last 3 months","last_commit":"Last commit","loading":"Loading...","use_it":"Use it","try_in_runkit":"Try in RunKit","back_to_details":"Back to Details","browse_files":"Browse Files","cdns":"CDNs","contributors":"Contributors","display_full_readme":"Display full readme","display_full_changelog":"Display full changelog","files_error":"Could not load file listing: {error}","files_header":"Files in {name}","collapse":"Collapse","readme":"readme","no_readme_found":"no readme found 😢","changelog":"changelog","popularity":"Popularity","github_stargazers":"GitHub stargazers","gitlab_stargazers":"GitLab stargazers","downloads_last_30_days":"Downloads last 30 days","jsdelivr_hits":"jsDelivr last 30 days","dependents":"Dependents","usage":"Usage","dependencies":"Dependencies","devdependencies":"DevDependencies","packages":"Packages","see_package_json":"see package.json","tags":"Tags","versions":"Versions","display_all":"Display all","hide":"Hide","bundlesize":"Size in browser","bundlesize_text":"size: {size}, gzip: {gzip}","not_found":{"whoa":"Whoa, {package_name} does not exist yet","yours":"But that means it is now yours!","make":"Make your package"}}};
542  window.i18n = {"search_placeholder":"Search packages (i.e. babel, webpack, react…)","search_by_algolia":"Search by Algolia","search_by_read_more":"read how it works","no_package_found":"No package {name} was found","no_results_docsearch":"Were you looking for something in the {documentation_link}?","documentation":"documentation","downloads_in_last_30_days":"{count} downloads in the last 30 days","npm_page_for":"npm page for {name}","repository_of":"{provider} repository of {name}","npm":"npm","github":"GitHub","gitlab":"GitLab","bitbucket":"Bitbucket","homepage":"Homepage","deprecated":"deprecated","result_stats":"found {number_packages} packages in {time_search}ms","time_ago":"{time_distance} ago","last_updated":"last updated {update_date}","detail":{"over_a_year_ago":"over a year ago","less_than_a_week_ago":"less than a week ago","one_week_ago":"one week ago","weeks_ago":"{count} weeks ago","activity":"Activity","commits_last_three_months":"Commits last 3 months","last_commit":"Last commit","loading":"Loading...","use_it":"Use it","try_in_runkit":"Try in RunKit","back_to_details":"Back to Details","browse_files":"Browse Files","cdns":"CDNs","contributors":"Contributors","display_full_readme":"Display full readme","display_full_changelog":"Display full changelog","files_error":"Could not load file listing: {error}","files_header":"Files in {name}","collapse":"Collapse","readme":"readme","no_readme_found":"no readme found 😢","changelog":"changelog","popularity":"Popularity","github_stargazers":"GitHub stargazers","gitlab_stargazers":"GitLab stargazers","downloads_last_30_days":"Downloads last 30 days","jsdelivr_hits":"jsDelivr last 30 days","dependents":"Dependents","usage":"Usage","dependencies":"Dependencies","devdependencies":"DevDependencies","packages":"Packages","see_package_json":"see package.json","tags":"Tags","versions":"Versions","display_all":"Display all","hide":"Hide","bundlesize":"Size in browser","bundlesize_text":"size: {size}, gzip: {gzip}","not_found":{"whoa":"Whoa, {package_name} does not exist yet","yours":"But that means it is now yours!","make":"Make your package"}}} || {};
543  window.i18n.url_base = "/en";
544  window.i18n.active_language = "en";
545  
546  // give defaults
547  function copyDefaults(from, to) {
548    for (var key in from) {
549      if (from[key] !== null && typeof from[key] === 'object') {
550        copyDefaults(from[key], to[key] || (to[key] = {}));
551        continue;
552      }
553      if (to.hasOwnProperty(key) === false || to[key] === null) {
554        to[key] = from[key];
555      }
556    }
557  }
558
559  copyDefaults(i18n_default, window.i18n);
560</script>
560
561
562    
562<script src="/js/build/vendor.bb983233e26fd3fd2fe3.js"></script>
562
563    
563<script src="/js/build/common.2a29ed27bfa751cd6609.js"></script>
563
564    
565      
565<script src="/js/build/documentation.7fe0a116aeeb0a669942.js"></script>
565
566    
567    
568  </body>
569</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.