NuxtN
Nuxtβ€’2y ago
Jure

pnpm error when creating new project

Every time I'm creating a new Nuxt project with pnpm:

pnpm dlx nuxi@latest init <project-name>

I'm asked: Which package manager would you like to use?

pnpm

And then I get an error:

◐ Installing dependencies...                                                              
Usage Error: This project is configured to use yarn
$ pnpm ...
ERROR  Error: Command failed with exit code 1: corepack pnpm install


After that I just manually run pnpm install and all dependencies are successfully installed.

But I would still like to get rid of the error... πŸ™‚
Was this page helpful?