Skip to content

Commit 3a793b3

Browse files
authored
Update questions-and-answers.md
1 parent a13a8ae commit 3a793b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/docusaurus/docs/getting-started/extra/questions-and-answers.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ import TOCInline from '@theme/TOCInline';
99

1010
<TOCInline toc={toc} />
1111

12+
## Why is the `yarn` package on npm still on 1.x?
13+
14+
Modern releases of Yarn haven't been distributed on npm since 2019.
15+
16+
The reason is simple: because Yarn wasn't distributed alongside Node.js, many people relied on something like `npm install -g yarn` as part of their image building. It meant that any breaking change would make their way on everyone using this pattern, and break their deployments.
17+
18+
As a result, we decided to retire the `yarn` npm package and only use it for the few 1.x maintenance releases needed. Yarn is now installed directly from our website, via either [Corepack](https://nodejs.org/api/corepack.html) or `yarn set version`.
19+
1220
## Why should you upgrade to Yarn Modern?
1321

1422
While the Yarn Classic line (1.x) remains a pillar of the JavaScript ecosystem, we recommend upgrading if possible. Why's that?

0 commit comments

Comments
 (0)