Skip to content

npm ci fails on update — package-lock.json out of sync with @types/node #44198

Closed as not planned

Description

@edwinhati

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).

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    comp/cliCLI entry point, hermes_cli/, setup wizard
    area/configConfig system, migrations, profiles
    duplicateThis issue or pull request already exists
    on Jun 11, 2026
  2. alt-glitch commented on Jun 11, 2026

    @alt-glitch

    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).

  3. RaghuramReddy9 commented on Jun 15, 2026

    @RaghuramReddy9

    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.

  4. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/configConfig system, migrations, profilescomp/cliCLI entry point, hermes_cli/, setup wizardduplicateThis issue or pull request already existssweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions