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
$ pnpm add --save-dev cypress
Packages: +173
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 173, reused 173, downloaded 0, added 173, done
devDependencies:
+ cypress 13.17.0
The following dependencies have build scripts that were ignored: cypress
To allow the execution of build scripts for these packages, add their names to "pnpm.onlyBuiltDependencies" in your "package.json", then run "pnpm rebuild"
Done in 11.4s
Alternatives
Add exception
Add cypress to the exception list for pnpm life cycle scripts in package.json:
"pnpm": {
"onlyBuiltDependencies": ["cypress"]
}
Install Cypress binary manually
pnpm add --save-dev cypress
pnpm cypress install
This allows Cypress to run, however pnpm will continue to output the warning message about ignored build scripts.
The text was updated successfully, but these errors were encountered:
Since the pnpm warning is quite explicit, I didn't add anything to the troubleshooting section. The warning should be self explanatory and any reader of the advanced installation page, where the troubleshooting instructions are located, can be implicitly expected to read the regular installation instructions first and be familiar with them.
The warning is:
The following dependencies have build scripts that were ignored: cypress
To allow the execution of build scripts for these packages, add their names to "pnpm.onlyBuiltDependencies" in your "package.json", then run "pnpm rebuild"
Description
Issue
[email protected] was released today, Jan 7, 2025 and includes a breaking change:
The installation instructions for Cypress with pnpm
are no longer sufficient to install the Cypress binary together with the cypress npm module.
This affects also the Troubleshoot installation instructions.
Logs
Alternatives
Add exception
Add
cypress
to the exception list for pnpm life cycle scripts inpackage.json
:Install Cypress binary manually
This allows Cypress to run, however pnpm will continue to output the warning message about ignored build scripts.
The text was updated successfully, but these errors were encountered: