From 21fa7cb8671c2e9ce5440ffe8242744608b8225a Mon Sep 17 00:00:00 2001 From: bigopon <9994529+bigopon@users.noreply.github.com> Date: Sun, 1 Sep 2024 22:21:49 +1000 Subject: [PATCH] fix: pass shell: true to run npm to avoid einval on windows reference: https://github.com/nodejs/node/issues/52554 --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 67966e8..6608faa 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -60,7 +60,7 @@ export async function main( } async function latestVersionFromNpm(): Promise { - const stdout = await runNpm(['info', 'tachometer@latest', 'version']); + const stdout = await runNpm(['info', 'tachometer@latest', 'version'], { shell: true }); return stdout.toString('utf8').trim(); }