Commit 74145dd
fix: Reorder npm upgrade to prevent lock file sync errors (#143)
This change ensures npm is upgraded AFTER installing dependencies rather
than before. Upgrading npm before running npm ci causes package-lock.json
sync errors that prevent successful dependency installation.
The issue occurs because different npm versions may use different lock
file formats. When npm is upgraded before dependencies are installed, the
subsequent npm ci command detects a format mismatch and fails with:
"npm ci can only install packages when your package.json and
package-lock.json or npm-shrinkwrap.json are in sync."
Testing confirmed this order resolves the issue:
1. Install dependencies with current npm version (works)
2. Upgrade npm to latest (maintains lock file compatibility)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 446b63e commit 74145dd
2 files changed
+1455
-959
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
0 commit comments