You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***doc:** add a note about troubleshooting network errors ([#259](https://github.com/nodejs/corepack/issues/259)) ([aa3cbdb](https://github.com/nodejs/corepack/commit/aa3cbdb54fb21b8e0adde96dc781cdf750932843))
Copy file name to clipboardExpand all lines: deps/corepack/README.md
+47-12Lines changed: 47 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,20 @@
2
2
3
3
Corepack is a zero-runtime-dependency Node.js script that acts as a bridge
4
4
between Node.js projects and the package managers they are intended to be used
5
-
with during development. In practical terms, **Corepack will let you use Yarn
6
-
and pnpm without having to install them** - just like what currently happens
7
-
with npm, which is shipped by Node.js by default.
8
-
9
-
**Important:** At the moment, Corepack only covers Yarn and pnpm. Given that we
10
-
have little control on the npm project, we prefer to focus on the Yarn and pnpm
11
-
use cases. As a result, Corepack doesn't have any effect at all on the way you
12
-
use npm.
5
+
with during development. In practical terms, **Corepack lets you use Yarn, npm,
6
+
and pnpm without having to install them**.
13
7
14
8
## How to Install
15
9
16
10
### Default Installs
17
11
18
-
Corepack is distributed by default with Node.js 14.19.0 and 16.9.0, but is
19
-
opt-in for the time being. Run `corepack enable` to install the required shims.
12
+
Corepack is [distributed by default with all recent Node.js versions](https://nodejs.org/api/corepack.html).
13
+
Run `corepack enable` to install the required Yarn and pnpm binaries on your path.
20
14
21
15
### Manual Installs
22
16
23
17
<details>
24
-
<summary>Click here to see how to install Corepack using npm</summary>
18
+
<summary>Install Corepack using npm</summary>
25
19
26
20
First uninstall your global Yarn and pnpm binaries (just leave npm). In general,
27
21
you'd do this by running the following command:
@@ -45,6 +39,12 @@ is distributed along with Node.js itself.
45
39
46
40
</details>
47
41
42
+
<details><summary>Install Corepack from source</summary>
43
+
44
+
See [`CONTRIBUTING.md`](./CONTRIBUTING.md).
45
+
46
+
</details>
47
+
48
48
## Usage
49
49
50
50
### When Building Packages
@@ -131,12 +131,37 @@ on a project where the `packageManager` field references `pnpm`).
0 commit comments