Skip to content

Error occurs on initialization with picking pnpm #665

@oliver139

Description

@oliver139

Environment

  • Operating System: Darwin
  • Node Version: v22.13.0
  • Nuxt Version: -
  • CLI Version: 3.19.1
  • Nitro Version: -
  • Package Manager: pnpm@9.15.3
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

N/A

Describe the bug

As the docs mentioned, I tried to init my nuxt project with pnpm dlx nuxi@latest init project-name
Then it asked > Which package manager would you like to use? and I picked pnpm
And then I got Error: spawn corepack ENOENT

Additional context

  1. I installed my Node.js by pnpm env
  2. If I picked npm instead, it has no error.
  3. Already tried reinstalling pnpm

Logs

❯ pnpm dlx nuxi@latest init project-name

✔ Which package manager would you like to use?
pnpm
◐ Installing dependencies...                                                                                           nuxi 1:06:46 AM

 ERROR  Error: spawn corepack ENOENT

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