From 221bdadac65c63b54cb032963ffd936906e86529 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Wed, 19 Aug 2026 16:57:20 +0200 Subject: [PATCH 1/2] test: use npm_config_extra_param for npm custom install test changed for npm 12 compatibility which otherwise throws an error for unknown cli flags Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> --- test/npm/test-npm-install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/npm/test-npm-install.js b/test/npm/test-npm-install.js index e13e4953..812774a6 100644 --- a/test/npm/test-npm-install.js +++ b/test/npm/test-npm-install.js @@ -46,7 +46,7 @@ test('npm-install: custom install command', async (t) => { const context = npmContext( { name: 'omg-i-pass-with-install-param', - install: ['install', '--extra-param'] + envVar: { npm_config_extra_param: 'true' } }, packageManagers, sandbox, From c9370b13a1077de077b065437ecf038fbd00a53f Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Wed, 19 Aug 2026 17:44:40 +0200 Subject: [PATCH 2/2] test: use npm_config_allow_git all to install from git source changed for npm 12 compatibility which otherwise throws an error EALLOWGIT when attempting to install from a git source Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> --- test/test-citgm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-citgm.js b/test/test-citgm.js index 23566c4c..a35abeda 100644 --- a/test/test-citgm.js +++ b/test/test-citgm.js @@ -40,6 +40,7 @@ test('citgm: omg-i-pass from git url', (t) => { const mod = 'git+https://github.com/MylesBorins/omg-i-pass'; const tester = new Tester(mod, options); + tester.module.envVar = { npm_config_allow_git: 'all' }; tester .on('start', (name) => { t.equal(name, mod, 'it should be the raw URL');