Skip to content

[BUG] npm publish results in Cannot find module 'sigstore' #9722

Description

@james-pre

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

This is not just a request to bump a dependency for a CVE

  • This is not solely a request to bump a dependency for a CVE

Current Behavior

This occurred in a CI release workflow run:

Run npm publish --access=public --provenance
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'sigstore'
npm error Require stack:
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/node_modules/libnpmpublish/lib/provenance.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/node_modules/libnpmpublish/lib/publish.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/node_modules/libnpmpublish/lib/index.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/lib/commands/publish.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/lib/npm.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/lib/cli/entry.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/lib/cli.js
npm error - /opt/hostedtoolcache/node/26.4.0/x64/lib/node_modules/npm/bin/npm-cli.js
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-07-05T20_19_26_876Z-debug-0.log

source

Expected Behavior

This should work correctly

Steps To Reproduce

  1. Set up a CI workflow to publish
  2. Run npm publish --access=public --provenance in the workflow
  3. It fails

Environment

  • npm: 12.0.0-pre.2
  • Node.js: 24.6.0
  • OS Name: ubuntu-latest
  • System Model Name: unknown
  • npm config: unavailable (its on a GitHub actions runner), though install-strategy=linked is set in .npmrc

Activity

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

    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