From e2af316b3e74fa65c8e060d06509f2ac61a6e5ee Mon Sep 17 00:00:00 2001 From: "Pawla Abdul (Bot)" Date: Sun, 12 Apr 2026 16:16:44 +0000 Subject: [PATCH] Fix adapter install pruning other plugins by removing --no-save npm install --no-save does not record dependencies in package.json, so when a second adapter is installed, npm prunes the first as extraneous. Removing --no-save ensures all installed adapters are tracked in the managed package.json and persist across installs. Fixes FAR-47 Co-Authored-By: Paperclip --- server/src/routes/adapters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/adapters.ts b/server/src/routes/adapters.ts index a6882b8f..2af29f29 100644 --- a/server/src/routes/adapters.ts +++ b/server/src/routes/adapters.ts @@ -256,7 +256,7 @@ export function adapterRoutes() { logger.info({ spec, pluginsDir }, "Installing adapter package via npm"); - await execFileAsync("npm", ["install", "--no-save", spec], { + await execFileAsync("npm", ["install", spec], { cwd: pluginsDir, timeout: 120_000, }); @@ -574,7 +574,7 @@ export function adapterRoutes() { logger.info({ type, packageName: record.packageName }, "Reinstalling adapter package via npm"); - await execFileAsync("npm", ["install", "--no-save", record.packageName.trim()], { + await execFileAsync("npm", ["install", record.packageName.trim()], { cwd: pluginsDir, timeout: 120_000, });