Skip to content

Commit

Permalink
Test to see where ENOENT is coming from
Browse files Browse the repository at this point in the history
  • Loading branch information
Promytheos committed Oct 16, 2024
1 parent d8669be commit cd73236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/package-managers/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ async function spawnNpm(
spawnPleaseOptions: SpawnPleaseOptions = {},
spawnOptions: Index<any> = {},
): Promise<any> {
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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/package-managers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async function spawnYarn(
spawnPleaseOptions: SpawnPleaseOptions = {},
spawnOptions: SpawnOptions = {},
): Promise<string> {
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 = [
Expand Down

0 comments on commit cd73236

Please sign in to comment.