Skip to content

Commit 891fd85

Browse files
committed
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. (cherry picked from commit f6cb128)
1 parent 7e133c4 commit 891fd85

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/e2e/setup/001-npm-sandbox.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export default async function () {
3535
process.env['NPM_CONFIG_legacy_peer_deps'] = 'true';
3636
}
3737

38+
// Allow github tarballs consumption.
39+
process.env['NPM_CONFIG_allow_remote'] = 'all';
40+
3841
// Configure the registry and prefix used within the test sandbox via rc files
3942
await writeFile(npmrc, `registry=${npmRegistry}\nprefix=${npmModulesPrefix}`);
4043
await writeFile(yarnrc, `registry ${npmRegistry}\nprefix ${yarnModulesPrefix}`);

tests/e2e/setup/100-global-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getActivePackageManager } from '../utils/packages';
33
import { globalNpm } from '../utils/process';
44

55
const PACKAGE_MANAGER_VERSION = {
6-
'npm': '10.8.1',
6+
'npm': '12.0.2',
77
'yarn': '1.22.22',
88
'pnpm': '10.17.1',
99
'bun': '1.3.2',

0 commit comments

Comments
 (0)