Skip to content

Commit

Permalink
Refactor npm command in GeneratorAcquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoshi committed Oct 18, 2024
1 parent 96f0aee commit 780ec26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/lib/GeneratorAcquisition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class GeneratorAcquisition implements IDisposable {
}

private npm(args: string[]) {
return spawnSync(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', args, { cwd: this._ppagesGlobalPath });
return spawnSync(this.npmCommand, args, { cwd: this._ppagesGlobalPath, shell: true });
}

public ensureInstalled(): string | null {
Expand Down Expand Up @@ -141,4 +141,3 @@ export class GeneratorAcquisition implements IDisposable {
}
}
}

0 comments on commit 780ec26

Please sign in to comment.