From ac8c78e084741223cd8c3aa613c32e9b51d2dfef Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Thu, 3 Sep 2026 14:21:08 +0000 Subject: [PATCH] test: update e2e global npm version to 12.0.2 Update the npm version installed in the e2e test sandbox to 12.0.2 to avoid an upstream npm 10 Arborist crash when resolving optional peer dependencies. --- tests/e2e/setup/001-npm-sandbox.ts | 3 +++ tests/e2e/setup/100-global-cli.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/setup/001-npm-sandbox.ts b/tests/e2e/setup/001-npm-sandbox.ts index dcd5f8a1a021..9989beb80b36 100644 --- a/tests/e2e/setup/001-npm-sandbox.ts +++ b/tests/e2e/setup/001-npm-sandbox.ts @@ -35,6 +35,9 @@ export default async function () { process.env['NPM_CONFIG_legacy_peer_deps'] = 'true'; } + // Allow github tarballs consumption. + process.env['NPM_CONFIG_allow_remote'] = 'all'; + // Configure the registry and prefix used within the test sandbox via rc files await writeFile(npmrc, `registry=${npmRegistry}\nprefix=${npmModulesPrefix}`); await writeFile(yarnrc, `registry ${npmRegistry}\nprefix ${yarnModulesPrefix}`); diff --git a/tests/e2e/setup/100-global-cli.ts b/tests/e2e/setup/100-global-cli.ts index 9f587fa5c38d..d660fc1d1158 100644 --- a/tests/e2e/setup/100-global-cli.ts +++ b/tests/e2e/setup/100-global-cli.ts @@ -3,7 +3,7 @@ import { getActivePackageManager } from '../utils/packages'; import { globalNpm } from '../utils/process'; const PACKAGE_MANAGER_VERSION = { - 'npm': '10.8.1', + 'npm': '12.0.2', 'yarn': '1.22.22', 'pnpm': '10.17.1', 'bun': '1.3.2',