Skip to content

Conversation

@franknoel
Copy link

What?

Next.js commands like dev and build fail in pnpm workspaces for versions after 10.7.0.

Why?

pnpm now defaults to npm when running config get registry. This fails when ran in a workspace, as the --no-workspaces flag is missing.

How?

If pnpm is found in getRegistry, we should fallback to npm to include the flag, as pnpm is defaulting to npm anyway.

Fixes #86841

@ijjk ijjk added the type: next label Dec 4, 2025
@ijjk
Copy link
Member

ijjk commented Dec 4, 2025

Allow CI Workflow Run

  • approve CI run for commit: 8406523

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk
Copy link
Member

ijjk commented Dec 4, 2025

Allow CI Workflow Run

  • approve CI run for commit: 8406523

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev Server NPM error code ENOWORKSPACES with PNPM 10

2 participants