Skip to content

fix(update): use npm ci to prevent stale node_modules after update#960

Merged
accius merged 1 commit into
accius:Stagingfrom
ceotjoe:fix/update-use-npm-ci-v2
May 10, 2026
Merged

fix(update): use npm ci to prevent stale node_modules after update#960
accius merged 1 commit into
accius:Stagingfrom
ceotjoe:fix/update-use-npm-ci-v2

Conversation

@ceotjoe
Copy link
Copy Markdown
Collaborator

@ceotjoe ceotjoe commented May 7, 2026

Summary

  • Replaces npm install --include=dev with npm ci in scripts/update.sh
  • npm ci wipes node_modules before installing, so newly added production dependencies (like rss-parser in v26.3.x) are guaranteed to be present after an update
  • Fixes a user-reported issue where updating via update.sh left rss-parser absent, causing [FATAL] Cannot find module 'rss-parser' on service restart; re-running setup-pi.sh (which writes into a clean tree) resolved it

Test plan

  • Run update.sh on a Pi with an existing install from before rss-parser was added and confirm the service starts cleanly
  • Confirm npm ci fails fast if package.json and package-lock.json are out of sync (expected safety net behaviour)

🤖 Generated with Claude Code

…modules

npm ci deletes node_modules and reinstalls from the lockfile exactly,
so newly added production dependencies (e.g. rss-parser in v26.3.x)
are guaranteed to be present after an update rather than silently
absent from an existing, incremental node_modules tree.

Fixes: Cannot find module 'rss-parser' after running update.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ceotjoe ceotjoe linked an issue May 7, 2026 that may be closed by this pull request
@accius accius merged commit 4fc3196 into accius:Staging May 10, 2026
4 checks passed
accius added a commit that referenced this pull request May 10, 2026
…pre-Hamvention banner

Folds the four post-26.3.1 Staging merges (#936 MeshCom, #960 update.sh
npm ci, #964 grid consolidation, #967 satellite audit) into the 26.3.2
features list and rewrites the entries in plainer language for the
production audience. Announcement banner now leads with the surprise
hotfix-and-feature drop ahead of Hamvention 2026.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Service fails to start after 26.3.1 update

2 participants