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 implements a side-effects-cache that uses and caches the results of (pre/post)-install hooks. This does not work if the effects of running the hook are outside the package's module. This is the case for the Cypress postinstall hook which installs the Cypress binary in a separate cache location (see Binary cache). pnpm believes that it is unnecessary to run the Cypress postinstall hook and skips it if the Cypress npm module is already present in the pnpm store cache.
[email protected], released Apr 14, 2025 has resolved several configuration issues, so this Cypress documentation enhancement can now be moved forward.
Uh oh!
There was an error while loading. Please reload this page.
Issue
pnpm implements a side-effects-cache that uses and caches the results of (pre/post)-install hooks. This does not work if the effects of running the hook are outside the package's module. This is the case for the Cypress
postinstall
hook which installs the Cypress binary in a separate cache location (see Binary cache). pnpm believes that it is unnecessary to run the Cypresspostinstall
hook and skips it if the Cypress npm module is already present in the pnpm store cache.This is not documented on https://docs.cypress.io/ and it is only briefly referred to on https://pnpm.io/settings#sideeffectscache.
This can cause Cypress to report the error:
Suggestion
Add configuration and troubleshooting information for the pnpm side effects cache.
Ideally pnpm would convert to consistently support using
pnpm-workspace.yaml
, so that Cypress could recommend using:There are however multiple related issues (see below) concerning configuration and pnpm
10.x
is still evolving in this respect.I will hold back before attempting to submit any documentation change PRs for this.
Related issues
postinstall
not run afterconfig set side-effects-cache
in10.7.0
and above pnpm/pnpm#9394--allow-build
still writesonlyBuiltDependencies
topackage.json
pnpm/pnpm#9399The text was updated successfully, but these errors were encountered: