Skip to content

test(deps): add allow-remote=all to nextjs example - #1904

Merged
AtofStryker merged 3 commits into
cypress-io:masterfrom
MikeMcC399:nextjs-allow-remote
Sep 17, 2026
Merged

AtofStryker merged 3 commits into
cypress-io:masterfrom
MikeMcC399:nextjs-allow-remote

Conversation

@MikeMcC399

@MikeMcC399 MikeMcC399 commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Situation

Recent Renovate bot releases are causing Renovate to fail to update examples/nextjs.

The error code is EALLOWREMOTE.

npm error code EALLOWREMOTE
npm error Fetching packages of type "remote" have been disabled
npm error Refusing to fetch "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz"

This is an unexpected error message from [email protected].

Change

As a workaround, create an .npmrc file in examples/nextjs with an explicit allow-remote=all entry. This corresponds to the default setting for npm@11 packaged by Node.js 24 & 26 (see https://docs.npmjs.com/cli/v11/using-npm/config#allow-remote).

Execute npm install --package-lock-only and save changes.

Verification

On Ubuntu 24.04.5 LTS, Node.js 24.21.0 LTS

git clone https://github.com/cypress-io/github-action
cd github-action
cd examples/nextjs
npm install npm@12 -g
npm install --package-lock-only --no-audit --ignore-scripts

Confirm no changes made to package-lock.json.

Follow up

@tailwindcss/postcss includes transient optional dependencies for wasm32 environments. A better workaround or resolution may need to involve tailwind and / or npm.


Note

Low Risk
Example-only npm/lockfile workaround with no runtime or CI action logic changes.

Overview
Adds allow-remote=all in examples/nextjs/.npmrc so npm 12 can resolve optional Tailwind oxide wasm32 packages during lockfile installs. Without it, Renovate and local npm install hit EALLOWREMOTE when fetching remote tarball deps.

Regenerates examples/nextjs/package-lock.json (npm install --package-lock-only) so nested optional/bundled entries under @tailwindcss/oxide-wasm32-wasi match installs under that config.

Reviewed by Cursor Bugbot for commit 76b8296. Bugbot is set up for automated code reviews on this repo. Configure here.

@MikeMcC399 MikeMcC399 added bug Something isn't working renovate tests labels Sep 17, 2026
@MikeMcC399 MikeMcC399 self-assigned this Sep 17, 2026
@MikeMcC399
MikeMcC399 marked this pull request as ready for review September 17, 2026 15:50

@AtofStryker AtofStryker left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I reproduced the failure and the fix locally with npm 12.0.2.

Looks like you need both the lockfile updates AND the .npmrc. The new lockfile fixes the current error. However, you still need the .npmrc file for the next Tailwind update. I tested this by updating @tailwindcss/postcss without the .npmrc file. It failed with the EALLOWREMOTE error. Nothing to do here, just worth noting.

For reference, the upstream npm bug is npm/cli#9800, with fixes in progress in npm/cli#9819 and npm/cli#9921. Once one of those ships, the .npmrc can go.

Thanks for tracking this down, @MikeMcC399!

@MikeMcC399

Copy link
Copy Markdown
Collaborator Author

@AtofStryker

Thanks for tracking this down!

Thanks also to you for the bug / fix references! I hadn't quite got as far as investigating with tailwind / npm!

@AtofStryker
AtofStryker merged commit 01e3b65 into cypress-io:master Sep 17, 2026
94 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 7.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants