From f835b8bbd5aedf5c2c135575569445c26af9121b Mon Sep 17 00:00:00 2001 From: Phil Mahncke Date: Thu, 22 Jan 2026 21:34:16 -0500 Subject: [PATCH] fix: add --ignore-scripts option to npm install command in ModuleManager This change ensures that scripts are not executed during the installation of dependencies, improving the reliability of the installation process. --- tools/cli/installers/lib/modules/manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cli/installers/lib/modules/manager.js b/tools/cli/installers/lib/modules/manager.js index 453fa81c..c68fb9e9 100644 --- a/tools/cli/installers/lib/modules/manager.js +++ b/tools/cli/installers/lib/modules/manager.js @@ -416,7 +416,7 @@ class ModuleManager { if (needsDependencyInstall || wasNewClone || nodeModulesMissing) { const installSpinner = ora(`Installing dependencies for ${moduleInfo.name}...`).start(); try { - execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress', { + execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress --ignore-scripts', { cwd: moduleCacheDir, stdio: 'pipe', timeout: 120_000, // 2 minute timeout @@ -441,7 +441,7 @@ class ModuleManager { if (packageJsonNewer) { const installSpinner = ora(`Installing dependencies for ${moduleInfo.name}...`).start(); try { - execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress', { + execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress --ignore-scripts', { cwd: moduleCacheDir, stdio: 'pipe', timeout: 120_000, // 2 minute timeout