test: set npm allow-scripts for cypress#1783
Merged
Merged
Conversation
and for sharp in examples/nextjs
Collaborator
|
mschile
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
allow-scriptswarning on Node.js 26.3.0 #1782Situation
When the .github/workflows/example-node-versions.yml is run, it now outputs a warning for Node.js 26
Node.js 26.3.0 is installed with bundled npm 11.16.0
Change
Running under Node.js 26.3.0 (with npm 11.16.0), and for all npm-based Cypress examples, apply:
Use a copy of scripts/update-cypress-latest-npm.sh to assist looping through all sub-directories.
For examples/nextjs additionally allow sharp as a dependency of next since it requires
node-gypto rebuild.Note
Low Risk
Example-only package.json metadata changes; no runtime or CI workflow logic is modified beyond silencing npm install-script warnings.
Overview
Adds npm
allowScriptsconfiguration to every npm-based Cypress examplepackage.jsonso installs under Node.js 26 / npm 11 no longer emitallow-scriptswarnings about Cypress’s postinstall.Each example now sets
"cypress": trueunderallowScripts.examples/nextjsalso allowssharp(Next.js dependency with native install scripts).Reviewed by Cursor Bugbot for commit 70d7d0e. Bugbot is set up for automated code reviews on this repo. Configure here.