We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9069bd3 commit 1a15425Copy full SHA for 1a15425
packages/create-payload-app/src/lib/get-package-manager.ts
@@ -54,7 +54,7 @@ function getEnvironmentPackageManager(): PackageManager {
54
55
async function commandExists(command: string): Promise<boolean> {
56
try {
57
- await execa.command(`command -v ${command}`)
+ await execa.command(process.platform === 'win32' ? `where ${command}` : `command -v ${command}`)
58
return true
59
} catch {
60
return false
0 commit comments