| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c821c3 commit 7ed40dc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,14 +33,14 @@ This feature simplifies two core workflows: | |||
| 33 | 33 | ### Enabling the feature | |
| 34 | 34 | ||
| 35 | 35 | Due to its experimental status, Corepack currently needs to be explicitly | |
| 36 | - enabled to have any effect. To do that simply run [`corepack enable`][], which | ||
| 37 | - will set up the symlinks in your environment, next to the `node` binary | ||
| 36 | + enabled to have any effect. To do that, run [`corepack enable`][], which | ||
| 37 | + will set up the symlinks in your environment next to the `node` binary | ||
| 38 | 38 | (and overwrite the existing symlinks if necessary). | |
| 39 | 39 | ||
| 40 | 40 | From this point forward, any call to the [supported binaries][] will work | |
| 41 | - without further setup. Should you experience a problem, just run | ||
| 41 | + without further setup. Should you experience a problem, run | ||
| 42 | 42 | [`corepack disable`][] to remove the proxies from your system (and consider | |
| 43 | - opening up an issue on the [Corepack repository][] to let us know). | ||
| 43 | + opening an issue on the [Corepack repository][] to let us know). | ||
| 44 | 44 | ||
| 45 | 45 | ### Configuring a package | |
| 46 | 46 | ||
@@ -57,7 +57,7 @@ successfully retrieved. | |||
| 57 | 57 | When running outside of an existing project (for example when running | |
| 58 | 58 | `yarn init`), Corepack will by default use predefined versions roughly | |
| 59 | 59 | corresponding to the latest stable releases from each tool. Those versions can | |
| 60 | - be easily overriden by running the [`corepack prepare`][] command along with the | ||
| 60 | + be overriden by running the [`corepack prepare`][] command along with the | ||
| 61 | 61 | package manager version you wish to set: | |
| 62 | 62 | ||
| 63 | 63 | ```bash | |
@@ -73,8 +73,8 @@ it can conflict with such environments. To avoid that happening, call the | |||
| 73 | 73 | the same time you're preparing your deploy image). This will ensure that the | |
| 74 | 74 | required package managers are available even without network access. | |
| 75 | 75 | ||
| 76 | - The `prepare` command has [various flags][], consult the detailed | ||
| 77 | - [Corepack documentation][] for more information on the matter. | ||
| 76 | + The `prepare` command has [various flags][]. Consult the detailed | ||
| 77 | + [Corepack documentation][] for more information. | ||
| 78 | 78 | ||
| 79 | 79 | ## Supported package managers | |
| 80 | 80 | ||
@@ -87,10 +87,10 @@ The following binaries are provided through Corepack: | |||
| 87 | 87 | ||
| 88 | 88 | ## Common questions | |
| 89 | 89 | ||
| 90 | - ### How does Corepack currently interact with npm? | ||
| 90 | + ### How does Corepack interact with npm? | ||
| 91 | 91 | ||
| 92 | - While Corepack could easily support npm like any other package manager, its | ||
| 93 | - shims aren't currently enabled by default. This has a few consequences: | ||
| 92 | + While Corepack could support npm like any other package manager, its | ||
| 93 | + shims aren't enabled by default. This has a few consequences: | ||
| 94 | 94 | ||
| 95 | 95 | * It's always possible to run a `npm` command within a project configured to | |
| 96 | 96 | be used with another package manager, since Corepack cannot intercept it. | |
@@ -103,13 +103,13 @@ shims aren't currently enabled by default. This has a few consequences: | |||
| 103 | 103 | npm prevents accidentally overriding the Corepack binaries when doing a global | |
| 104 | 104 | install. To avoid this problem, consider one of the following options: | |
| 105 | 105 | ||
| 106 | - * Don't run this command anymore; Corepack will provide the package manager | ||
| 106 | + * Don't run this command; Corepack will provide the package manager | ||
| 107 | 107 | binaries anyway and will ensure that the requested versions are always | |
| 108 | - available, so installing the package managers explicitly isn't needed anymore. | ||
| 108 | + available, so installing the package managers explicitly isn't needed. | ||
| 109 | 109 | ||
| 110 | 110 | * Add the `--force` flag to `npm install`; this will tell npm that it's fine to | |
| 111 | - override binaries, but you'll erase the Corepack ones in the process (should | ||
| 112 | - that happen, run [`corepack enable`][] again to add them back). | ||
| 111 | + override binaries, but you'll erase the Corepack ones in the process. (Run | ||
| 112 | + [`corepack enable`][] to add them back.) | ||
| 113 | 113 | ||
| 114 | 114 | [Corepack]: https://github.com/nodejs/corepack | |
| 115 | 115 | [Corepack documentation]: https://github.com/nodejs/corepack#readme | |
| Back | FazBrowse Home | New Git URL |
0 commit comments