Skip to content

[BUG]: npm 11.12.1 size regression (13MB -> 292MB) due to included dev artifacts #78664

@chinkung

Description

@chinkung

The npm package size has significantly increased in version 11.12.1 compared to 11.12.0. The package footprint skyrocketed from approximately 13MB to 292MB.

Initial investigation of the installed files reveals that development artifacts and unrelated tools are being bundled into the production package. Specifically, I have identified:

/usr/lib/node_modules/npm/.git (full version history)
/usr/lib/node_modules/npm/node_modules/release-please (and its dependencies)

These files should be excluded during the Wolfi build process to maintain the minimal footprint expected of Wolfi packages.

npm 11.12.0
Image

npm 11.12.1
Image

apk info -s npm
Image

Related commit: 9d3cfbd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions