From 6f697d9d56400de9f5a991ae24d2edea4666c69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=B6nig?= Date: Wed, 12 Feb 2025 16:11:18 +0100 Subject: [PATCH] fix: use cwd instead of prefix --- src/utils/ReleaseManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ReleaseManager.ts b/src/utils/ReleaseManager.ts index 911e343..04debd6 100644 --- a/src/utils/ReleaseManager.ts +++ b/src/utils/ReleaseManager.ts @@ -85,7 +85,7 @@ export class ReleaseManager { if (fs.existsSync(path.join(connectorDir, "node_modules"))) return await new Promise((resolve, reject) => { - const npmInstall = spawn("npm", ["install", "--prefix", connectorDir, "--production"], { stdio: "ignore" }) + const npmInstall = spawn("npm", ["install", "--production"], { stdio: "ignore", cwd: connectorDir }) npmInstall.on("close", (code) => { if (code !== 0) {