From f8ba6a4a3e30301588f33ccba9a9fa2d3f7c1783 Mon Sep 17 00:00:00 2001 From: Shannon Sands Date: Tue, 31 Mar 2026 10:54:58 +1000 Subject: [PATCH] fix(setup): use npm ci instead of npm install in hermes update npm install re-resolves the dependency graph and rewrites package-lock.json, leaving a dirty working tree after every update. npm ci installs exactly from the committed lockfile without mutating it, which is the correct command for reproducible installs in update/deployment contexts. Closes #4048 --- hermes_cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/main.py b/hermes_cli/main.py index 763bcea4ef8a..971bde0d840d 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -3038,7 +3038,7 @@ def cmd_update(args): import shutil if shutil.which("npm"): print("→ Updating Node.js dependencies...") - subprocess.run(["npm", "install", "--silent"], cwd=PROJECT_ROOT, check=False) + subprocess.run(["npm", "ci", "--silent"], cwd=PROJECT_ROOT, check=False) print() print("✓ Code updated!")