mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 06:10:44 -05:00
auto-dependency-installer-fix (!343)
Co-authored-by: clodan <clodan@clodan.com> Reviewed-on: SPT-AKI/Server#343
This commit is contained in:
parent
bf528fd1de
commit
d437b5b922
@ -548,12 +548,13 @@ export class PreAkiModLoader implements IModLoader
|
|||||||
os.platform() === "win32" ? "pnpm.exe" : "pnpm",
|
os.platform() === "win32" ? "pnpm.exe" : "pnpm",
|
||||||
);
|
);
|
||||||
|
|
||||||
let command = `${pnpmPath} install `;
|
let command = `"${pnpmPath}" install `;
|
||||||
for (const [depName, depVersion] of dependenciesToInstall)
|
for (const [depName, depVersion] of dependenciesToInstall)
|
||||||
{
|
{
|
||||||
command += `${depName}@${depVersion} `;
|
command += `${depName}@${depVersion} `;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.logger.debug(`Running command: ${command}`);
|
||||||
execSync(command, { cwd: modPath });
|
execSync(command, { cwd: modPath });
|
||||||
|
|
||||||
// Delete the new blank package.json then rename the backup back to the original name
|
// Delete the new blank package.json then rename the backup back to the original name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user