Skip to content

[cli] Added "allowUseNodeVersion" option and automatic cleanup of use-node-version in .npmrc #13376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yuto-trd
Copy link

@yuto-trd yuto-trd commented May 24, 2025

When a .npmrc file contains the use-node-version flag, vercel build currently fails with a hard error.
This pull request adds a boolean flag, allowUseNodeVersion, to vercel.json that lets teams temporarily suppress the error, proceed with the build, and automatically strip the use-node-version entry from .npmrc during the build process.

@yuto-trd yuto-trd requested a review from a team as a code owner May 24, 2025 18:41
Copy link

changeset-bot bot commented May 24, 2025

🦋 Changeset detected

Latest commit: 5c6e929

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yuto-trd yuto-trd changed the title [cli] Added "allowUseNodeVersion" option to suppress .npmrc use-node-version error [cli] Added "allowUseNodeVersion" option and automatic cleanup of deprecated use-node-version in .npmrc May 27, 2025
@yuto-trd yuto-trd changed the title [cli] Added "allowUseNodeVersion" option and automatic cleanup of deprecated use-node-version in .npmrc [cli] Added "allowUseNodeVersion" option and automatic cleanup of use-node-version in .npmrc May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant