mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
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
This commit is contained in:
parent
ffd5d37f9b
commit
f8ba6a4a3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue