Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Aug 25, 2024
1 parent 2f790c8 commit 1510e37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ version range, as it will always select the latest available version from the
same major line. Should you need to upgrade to a new major, use an explicit
`corepack use {name}@latest` call (or simply `corepack use {name}`).

### `corepack project install`

Installs the package manager used in the local project, and then uses it to
install dependencies.

This is roughly equivalent to running `corepack enable && npm install` for a
project using npm, or `corepack enable && pnpm install` for project using pnpm
and so on.

It can be useful for writing scripts to run against arbitrary projects, when
the package manager is not known in advance.

## Environment Variables

- `COREPACK_DEFAULT_TO_LATEST` can be set to `0` in order to instruct Corepack
Expand Down

0 comments on commit 1510e37

Please sign in to comment.