Skip to content

Can't use pnpm approve-builds locally #9045

@SukkaW

Description

@SukkaW

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

Package manager compatibility

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  • Install better-sqlite3 with pnpm@9
  • Upgrade pnpm from 9 to 10.2.0
  • Run pnpm approve-builds

Describe the Bug

Locally pnpm prints when running pnpm approve-builds:

There are no packages awaiting approval

However on CI I see:

Ignored build scripts: @swc/core, better-sqlite3. Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.

This causes CI fails to build while it works locally.

Expected Behavior

The local environment and the CI environment behavior should be consistent.

Which Node.js version are you using?

22.13.1

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions