(platform: NodeJS.Platform, npmArgs: string[])
| 638 | * `cmd.exe /d /s /c npm …` → works.) |
| 639 | */ |
| 640 | export function npmInvocation(platform: NodeJS.Platform, npmArgs: string[]): { cmd: string; args: string[] } { |
| 641 | if (platform === 'win32') { |
| 642 | return { cmd: 'cmd.exe', args: ['/d', '/s', '/c', ['npm', ...npmArgs].join(' ')] }; |
| 643 | } |
| 644 | return { cmd: 'npm', args: npmArgs }; |
| 645 | } |
| 646 | |
| 647 | function upgradeNpm( |
| 648 | method: Extract<InstallMethod, { kind: 'npm' }>, |
no test coverage detected