Repository navigation
test(deps): add allow-remote=all to nextjs example - #1904
Conversation
refresh package-lock.json
There was a problem hiding this comment.
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!
Thanks also to you for the bug / fix references! I hadn't quite got as far as investigating with tailwind / npm! |
|
🎉 This PR is included in version 7.4.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Situation
Recent Renovate bot releases are causing Renovate to fail to update examples/nextjs.
The error code is
EALLOWREMOTE.This is an unexpected error message from
[email protected].Change
As a workaround, create an
.npmrcfile in examples/nextjs with an explicitallow-remote=allentry. This corresponds to the default setting fornpm@11packaged by Node.js 24 & 26 (see https://docs.npmjs.com/cli/v11/using-npm/config#allow-remote).Execute
npm install --package-lock-onlyand save changes.Verification
On Ubuntu 24.04.5 LTS, Node.js 24.21.0 LTS
Confirm no changes made to
package-lock.json.Follow up
@tailwindcss/postcssincludes transient optional dependencies forwasm32environments. A better workaround or resolution may need to involvetailwindand / ornpm.Note
Low Risk
Example-only npm/lockfile workaround with no runtime or CI action logic changes.
Overview
Adds
allow-remote=allinexamples/nextjs/.npmrcso npm 12 can resolve optional Tailwind oxide wasm32 packages during lockfile installs. Without it, Renovate and localnpm installhitEALLOWREMOTEwhen fetching remote tarball deps.Regenerates
examples/nextjs/package-lock.json(npm install --package-lock-only) so nested optional/bundled entries under@tailwindcss/oxide-wasm32-wasimatch installs under that config.Reviewed by Cursor Bugbot for commit 76b8296. Bugbot is set up for automated code reviews on this repo. Configure here.