Skip to content

[BC BREAK] version 11.6.2 breaks CI #8669

@ro0NL

Description

@ro0NL

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Hi,

We notice our CI starts failing for the following patch update:

Package Update Change
npm patch 11.6.0 -> 11.6.2

Producing:

 > [build 7/9] RUN --mount=type=cache,target=/root/.npm     npm clean-install --legacy-peer-deps --logs-max=0:
2.769 npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
2.769 npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
2.769 npm error [--no-bin-links] [--no-fund] [--dry-run]
2.769 npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2.769 npm error [--workspaces] [--include-workspace-root] [--install-links]
2.769 npm error
2.769 npm error aliases: clean-install, ic, install-clean, isntall-clean
2.769 npm error
2.769 npm error Run "npm help ci" for more info
2.770 npm error Log files were not written due to the config logs-max=0

If i manually fiddle with it in a container, i see debug log:

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

But im not sure why our package.json and package-lock.json wouldnt be in sync ...

We always kept our package-lock.json in sync using npm clean-install --legacy-peer-deps && npm install --legacy-peer-deps --package-lock-only

Is there a related change in this patch release?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • npm: 11.6.2
  • Node.js: 22.19
  • OS Name: Ubunutu
  • System Model Name: Gitub Actions
  • npm config:
; "user" config from /root/.npmrc

engine-strict = true

; node bin location = /usr/local/bin/node
; node version = v22.19.0
; npm local prefix = /app
; npm version = 11.6.2
; cwd = /app
; HOME = /root
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions