Skip to content

Commit

Permalink
fix: pass shell: true to run npm to avoid einval on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon authored Sep 1, 2024
1 parent 1d8775c commit 21fa7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function main(
}

async function latestVersionFromNpm(): Promise<string> {
const stdout = await runNpm(['info', 'tachometer@latest', 'version']);
const stdout = await runNpm(['info', 'tachometer@latest', 'version'], { shell: true });
return stdout.toString('utf8').trim();
}

Expand Down

0 comments on commit 21fa7cb

Please sign in to comment.