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
* add limited support for `devEngines` ([#643](https://github.com/nodejs/corepack/issues/643)) ([b456268](https://github.com/nodejs/corepack/commit/b4562688513f23e37e37b0d69a0daff33ca84c8d))
9
+
* add more informative error when fetching latest stable fails ([#644](https://github.com/nodejs/corepack/issues/644)) ([53b1fe7](https://github.com/nodejs/corepack/commit/53b1fe75c47c06bd72a8b8f8bb699a47c9ca32fb))
10
+
* add support for `.corepack.env` ([#642](https://github.com/nodejs/corepack/issues/642)) ([9b95b46](https://github.com/nodejs/corepack/commit/9b95b46f05e50fe1c60f05309c210ba8fe4e23c5))
* do not resolve fallback descriptor when `packageManager` is defined ([#632](https://github.com/nodejs/corepack/issues/632)) ([12e77e5](https://github.com/nodejs/corepack/commit/12e77e506946d42a0de9ce8e68d75af8454d6776))
17
+
***doc:** fix link to proxy library ([#636](https://github.com/nodejs/corepack/issues/636)) ([bae0839](https://github.com/nodejs/corepack/commit/bae08397943d4b99437389b4286546361091f4b3))
18
+
* replace explicit with specify as verb ([#665](https://github.com/nodejs/corepack/issues/665)) ([351d86c](https://github.com/nodejs/corepack/commit/351d86c20226a8c18bfe212be27401f2908b1595))
19
+
***use:** do not throw on invalid `packageManager` ([#663](https://github.com/nodejs/corepack/issues/663)) ([4be72f6](https://github.com/nodejs/corepack/commit/4be72f6941afa0c9b2b7d26635016bb7b560df8a))
Copy file name to clipboardexpand all lines: deps/corepack/README.md
+59-1
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,25 @@ is distributed along with Node.js itself.
41
41
42
42
</details>
43
43
44
+
<details><summary>Update Corepack using npm</summary>
45
+
46
+
To install the latest version of Corepack, use:
47
+
48
+
```shell
49
+
npm install -g corepack@latest
50
+
```
51
+
52
+
If Corepack was installed on your system using a Node.js Windows Installer
53
+
`.msi` package then you might need to remove it before attempting to install a
54
+
different version of Corepack using npm. You can select the Modify option of the
55
+
Node.js app settings to access the Windows Installer feature selection, and on
56
+
the "corepack manager" feature of the Node.js `.msi` package by selecting
57
+
"Entire feature will be unavailable". See
58
+
[Repair apps and programs in Windows](https://support.microsoft.com/en-us/windows/repair-apps-and-programs-in-windows-e90eefe4-d0a2-7c1b-dd59-949a9030f317)
59
+
for instructions on accessing the Windows apps page to modify settings.
60
+
61
+
</details>
62
+
44
63
<details><summary>Install Corepack from source</summary>
45
64
46
65
See [`CONTRIBUTING.md`](./CONTRIBUTING.md).
@@ -94,6 +113,35 @@ use in the archive).
94
113
}
95
114
```
96
115
116
+
#### `devEngines.packageManager`
117
+
118
+
When a `devEngines.packageManager` field is defined, and is an object containing
119
+
a `"name"` field (can also optionally contain `version` and `onFail` fields),
120
+
Corepack will use it to validate you're using a compatible package manager.
121
+
122
+
Depending on the value of `devEngines.packageManager.onFail`:
123
+
124
+
- if set to `ignore`, Corepack won't print any warning or error.
125
+
- if unset or set to `error`, Corepack will throw an error in case of a mismatch.
126
+
- if set to `warn` or some other value, Corepack will print a warning in case
127
+
of mismatch.
128
+
129
+
If the top-level `packageManager` field is missing, Corepack will use the
130
+
package manager defined in `devEngines.packageManager` – in which case you must
131
+
provide a specific version in `devEngines.packageManager.version`, ideally with
0 commit comments