Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pnpm v10 install allowlist pnpm.onlyBuiltDependencies instructions #6072

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/app/get-started/install-cypress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ First, make sure you have all the [system requirements](#System-requirements).

## Install

Install Cypress via your preferred package manager. This will install Cypress locally as a dev dependency for your project. For pnpm, make sure that you have the `pnpm` environment installed: `npm install pnpm@latest --global`.
Install Cypress via your preferred package manager. This will install Cypress locally as a dev dependency for your project.

For `pnpm`, make sure that you have the `pnpm` environment installed.
Use `npm install pnpm@latest --global` or refer to [pnpm installation](https://pnpm.io/installation) for alternate `pnpm` installation instructions.
Starting with `pnpm` `v10` you must explicitly allow `pnpm` to execute the `postinstall` script of `cypress` to install the Cypress binary.
See the [pnpm package.json](https://pnpm.io/package_json) documentation for
[pnpm.onlyBuiltDependencies](https://pnpm.io/package_json#pnpmonlybuiltdependencies) or
[pnpm.onlyBuiltDependenciesFile](https://pnpm.io/package_json#pnpmonlybuiltdependenciesfile)
configuration options and use one of these to add `cypress` to the list of packages that are allowed to run install scripts.

<CypressInstallCommands />

Expand Down
Loading