Skip to content

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

Closed
ceotjoe wants to merge 13 commits intoaccius:Stagingfrom
ceotjoe:fix/update-use-npm-ci
Closed

fix(update): use npm ci to prevent stale node_modules after update#959
ceotjoe wants to merge 13 commits intoaccius:Stagingfrom
ceotjoe:fix/update-use-npm-ci

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

ceotjoe and others added 13 commits March 7, 2026 23:07
Removed macOS Intel build configuration and adjusted conditions for the publish job.
…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>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ceotjoe
Copy link
Copy Markdown
Collaborator Author

ceotjoe commented May 7, 2026

Will be newly created.

@ceotjoe ceotjoe closed this May 7, 2026
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.

1 participant