Skip to content

Comments

Fix auto-update by removing stale npm lock file#93

Merged
Tarquinen merged 2 commits intomasterfrom
fix/auto-update-lock-file-removal
Dec 9, 2025
Merged

Fix auto-update by removing stale npm lock file#93
Tarquinen merged 2 commits intomasterfrom
fix/auto-update-lock-file-removal

Conversation

@Tarquinen
Copy link
Collaborator

Summary

  • Fix auto-update feature failing to install new versions due to npm's lock file caching
  • Remove .package-lock.json from cache directory before running npm install to force fresh package resolution

Details

The auto-update feature was not working correctly because npm's .package-lock.json file in the ~/.cache/opencode/node_modules/ directory was pinning the installed version, preventing the update from installing. This fix removes that lock file before attempting the update.

The auto-update feature was failing to install new versions because npm's
.package-lock.json file in the cache directory was pinning the old version.
This fix removes the lock file before running npm install to force fresh
package resolution.
@Tarquinen Tarquinen merged commit 9f45c06 into master Dec 9, 2025
1 check passed
@Tarquinen Tarquinen deleted the fix/auto-update-lock-file-removal branch December 9, 2025 05:28
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