From cd732368561f4fa39ae7c59e5e919e1321b83185 Mon Sep 17 00:00:00 2001 From: Luke Swan Date: Wed, 16 Oct 2024 23:07:15 +0300 Subject: [PATCH] Test to see where ENOENT is coming from --- src/package-managers/npm.ts | 2 +- src/package-managers/yarn.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package-managers/npm.ts b/src/package-managers/npm.ts index 719a18f3..90b0bb9e 100644 --- a/src/package-managers/npm.ts +++ b/src/package-managers/npm.ts @@ -585,7 +585,7 @@ async function spawnNpm( spawnPleaseOptions: SpawnPleaseOptions = {}, spawnOptions: Index = {}, ): Promise { - const cmd = process.platform === 'win32' ? 'npm.cmd' : 'npm' + const cmd = process.platform === 'win32' ? 'npm' : 'npm' const sanitizedSpawnOptions = process.platform === 'win32' ? { ...spawnOptions, shell: true } : spawnOptions const fullArgs = [ diff --git a/src/package-managers/yarn.ts b/src/package-managers/yarn.ts index 40029a67..ca069fe9 100644 --- a/src/package-managers/yarn.ts +++ b/src/package-managers/yarn.ts @@ -195,7 +195,7 @@ async function spawnYarn( spawnPleaseOptions: SpawnPleaseOptions = {}, spawnOptions: SpawnOptions = {}, ): Promise { - const cmd = process.platform === 'win32' ? 'yarn.cmd' : 'yarn' + const cmd = process.platform === 'win32' ? 'yarn' : 'yarn' const sanitizedSpawnOptions = process.platform === 'win32' ? { ...spawnOptions, shell: true } : spawnOptions const fullArgs = [