Skip to content

Commit bfc1f0f

Browse files
committed
test: install specific npm version in npm version E2E test
To avoid project installation errors when running the `npm-7` E2E test, the previous semver range of `>7.5.6` has been instead set to a fixed `8.0.0`. This ensures consistency within the test as now a known version of npm will be used. This E2E test started failing recently due to the release of npm 10 which some packages do not support via the `engines` field. This situation in turn caused project install failures when the new version of npm was attempted to be installed in the test. (cherry picked from commit 889338c)
1 parent 05213c9 commit bfc1f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/misc/npm-7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function () {
3636

3737
try {
3838
// Install version >=7.5.6
39-
await npm('install', '--global', 'npm@>=7.5.6');
39+
await npm('install', '--global', 'npm@8.0.0');
4040

4141
// Ensure `ng update` does not show npm warning
4242
const { stderr: stderrUpdate1 } = await ng('update', ...extraArgs);

0 commit comments

Comments
 (0)