You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
npm ci fails on update — package-lock.json out of sync with @types/node #44198
Running hermes update throws this during the npm step:
npm error code EUSAGE
npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Invalid: lock file's @types/node@24.13.1 does not satisfy @types/node@24.13.2
It falls back to npm install automatically and the update finishes fine, so it's not blocking — just noisy. Looks like package-lock.json got committed with @types/node pinned to 24.13.1 while package.json wants ^24.12.0 and npm resolves that to 24.13.2 now. Probably just needs a npm install && git add package-lock.json to refresh the lock file.
Seen on a couple of fresh installs running hermes update (CLI 0.16.0).
Duplicate of #44121 — same bug: npm ci fails during hermes update because committed package-lock.json pins @types/node@24.13.1 while the registry now publishes 24.13.2. The update falls back to npm install automatically, so it's noisy but non-blocking. Open fix: #44024 (sync lockfile node types).
Same issue on v0.16.0 (2026.6.5). After hermes update pulled 34 new commits, npm ci failed with ~60 version mismatch errors (vite, esbuild, rolldown, postcss, tinyglobby, @rolldown/* platform packages, @oxc-project/types, @napi-rs/wasm-runtime, @tybys/wasm-util, and several @emnapi packages missing from lockfile). The updater recovered via npm install fallback, but the root cause is the same — package-lock.json is out of sync with the updated package.json manifests in the release.
Thanks for the report. This is already fixed on current main and was shipped in v2026.6.19.
Automated hermes-sweeper review evidence:
5e5308d34d87f65ff60a984210492a188419a1af (fix(node): fix @types/node version) is on current main and is contained in v2026.6.19.
Current workspace manifests and package-lock.json resolve their declared @types/node dependency to 22.20.0; the reported stale 24.13.1 lockfile entry is no longer present.
The related discussion correctly identified the original lockfile mismatch and referenced the overlapping fix.
Activity
alt-glitch commentedon Jun 11, 2026
Duplicate of #44121 — same bug:
npm cifails duringhermes updatebecause committedpackage-lock.jsonpins@types/node@24.13.1while the registry now publishes24.13.2. The update falls back tonpm installautomatically, so it's noisy but non-blocking. Open fix: #44024 (sync lockfile node types).RaghuramReddy9 commentedon Jun 15, 2026
Same issue on v0.16.0 (2026.6.5). After
hermes updatepulled 34 new commits,npm cifailed with ~60 version mismatch errors (vite, esbuild, rolldown, postcss, tinyglobby, @rolldown/* platform packages, @oxc-project/types, @napi-rs/wasm-runtime, @tybys/wasm-util, and several @emnapi packages missing from lockfile). The updater recovered vianpm installfallback, but the root cause is the same —package-lock.jsonis out of sync with the updatedpackage.jsonmanifests in the release.teknium1 commentedon Jul 14, 2026
Thanks for the report. This is already fixed on current
mainand was shipped inv2026.6.19.Automated hermes-sweeper review evidence:
5e5308d34d87f65ff60a984210492a188419a1af(fix(node): fix @types/node version) is on currentmainand is contained inv2026.6.19.package-lock.jsonresolve their declared@types/nodedependency to22.20.0; the reported stale24.13.1lockfile entry is no longer present.