Skip to content

Commit b0c4607

Browse files
authored
docs: add instructions to update corepack (#637)
1 parent bae0839 commit b0c4607

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@ is distributed along with Node.js itself.
4141

4242
</details>
4343

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+
4463
<details><summary>Install Corepack from source</summary>
4564

4665
See [`CONTRIBUTING.md`](./CONTRIBUTING.md).

0 commit comments

Comments
 (0)