Browse Source

Fix: Correct spawnSync parameters for pnpm check in bootstrap.mjs (cl… (#3952)

ChuKhaLi 10 months ago
parent
commit
fe9137b14e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/bootstrap.mjs

+ 1 - 1
scripts/bootstrap.mjs

@@ -41,7 +41,7 @@ function ensurePackageJson() {
 
 try {
 	// Check if pnpm is installed globally.
-	const pnpmCheck = spawnSync("command", ["-v", "pnpm"], { shell: true })
+	const pnpmCheck = spawnSync("pnpm", ["-v"], { shell: true })
 
 	let pnpmInstall