Compare commits

...

2 Commits

Author SHA1 Message Date
Phil 2c2b391901
Merge f835b8bbd5 into aad132c9b1 2026-01-22 23:29:48 -05:00
Phil Mahncke f835b8bbd5 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.
2026-01-22 22:23:57 -05:00
1 changed files with 2 additions and 2 deletions

View File

@ -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