From d437b5b9222a3da306adba81d2e8278726871e33 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 May 2024 11:01:35 +0000 Subject: [PATCH] auto-dependency-installer-fix (!343) Co-authored-by: clodan Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/343 --- project/src/loaders/PreAkiModLoader.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/src/loaders/PreAkiModLoader.ts b/project/src/loaders/PreAkiModLoader.ts index 939b4ef2..16f1f57f 100644 --- a/project/src/loaders/PreAkiModLoader.ts +++ b/project/src/loaders/PreAkiModLoader.ts @@ -548,12 +548,13 @@ export class PreAkiModLoader implements IModLoader os.platform() === "win32" ? "pnpm.exe" : "pnpm", ); - let command = `${pnpmPath} install `; + let command = `"${pnpmPath}" install `; for (const [depName, depVersion] of dependenciesToInstall) { command += `${depName}@${depVersion} `; } + this.logger.debug(`Running command: ${command}`); execSync(command, { cwd: modPath }); // Delete the new blank package.json then rename the backup back to the original name