Skip to content

Commit

Permalink
Temporary CI fix for npm bug (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jun 10, 2022
1 parent 311dd78 commit 04fd4d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/test/util/test-rig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,15 @@ class ExecResult {
code,
signal,
stdout: this.#stdout,
stderr: this.#stderr,
// TODO(aomarks) Temporary fix for
// https://github.com/npm/cli/issues/4980#issuecomment-1145334203.
// Remove when resolved.
stderr: IS_WINDOWS
? this.#stderr.replace(
/npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.\n/,
''
)
: this.#stderr,
});
});

Expand Down

0 comments on commit 04fd4d8

Please sign in to comment.