Skip to content

Conversation

@XxdpavelxX
Copy link
Contributor

@XxdpavelxX XxdpavelxX commented Oct 31, 2025

Update yarn version to 4.10.0 to fix the NPMMinimalAgeGate Error in create-release-pr workflows in extension discussed here. https://consensys.slack.com/archives/C09B64PEHAQ/p1761903353525079

related to yarn:
Preparing [email protected] for immediate activation...
Usage Error: Unrecognized or legacy configuration settings found: npmMinimalAgeGate - run "yarn config -v" to see the list of settings supported in Yarn (in /home/runner/work/metamask-extension/metamask-extension/.yarnrc.yml, /home/runner/work/metamask-extension/metamask-extension/github-tools/.yarnrc.yml)
$ yarn install [--json] [--immutable] [--immutable-cache] [--refresh-lockfile] [--check-cache] [--check-resolutions] [--inline-builds] [--mode #0]
Error: Process completed with exit code 1.

Test: https://github.com/consensys-test/metamask-extension-test-workflow2/actions/runs/18980470817/job/54212864714


Note

Upgrades Yarn from 4.5.1 to 4.10.3 by updating the release artifact in .yarn/releases.

  • Dependencies:
    • Upgrade Yarn by replacing .yarn/releases/yarn-4.5.1.cjs with .yarn/releases/yarn-4.10.3.cjs.

Written by Cursor Bugbot for commit fb18e22. This will update automatically on new commits. Configure here.

@Gudahtt
Copy link
Member

Gudahtt commented Oct 31, 2025

Probably best to use the latest version of Yarn: https://github.com/yarnpkg/berry/releases/tag/%40yarnpkg%2Fcli%2F4.10.3

It includes some bug fixes, including at least one related to this option

@XxdpavelxX XxdpavelxX changed the title Fix: Updated yarn version to 4.10.0 to resolve npmMinimalAgeGate error Fix: Updated yarn version to 4.10.3 to resolve npmMinimalAgeGate error Nov 4, 2025
@XxdpavelxX XxdpavelxX force-pushed the FixNPMMinimalGateError branch from ec5cdba to d0128c0 Compare November 4, 2025 18:07
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

It looks like the old Yarn binary is still there - could you delete .yarn/releases/yarn-4.5.1.cjs?

@Gudahtt
Copy link
Member

Gudahtt commented Nov 4, 2025

Also when I try to update Yarn locally using yarn set version 4.10.3, I'm noticing that it's updating the permissions for the file. Currently on this PR it's set to 644, but Yarn sets it to 755. Certainly it should be executable, since we're executing it

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM! I confirmed that the Yarn binary is identical to what yarn set version 4.10.3 downloads.

@XxdpavelxX XxdpavelxX merged commit 6a04e4d into main Nov 5, 2025
19 checks passed
@XxdpavelxX XxdpavelxX deleted the FixNPMMinimalGateError branch November 5, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants