npmyarnpkg95% confidence\u2191 31

`pnpm install` Usage Error: This project is configured to use yarn

Full error message
I am trying to migrate from yarn to pnpm. I ran pnpm install. It instantly failed and printed to the console:

Usage Error: This project is configured to use yarn

$ pnpm ...

I tried removing (renaming actually) yarn.lock and node_modules but to no avail. How to solve this?

I figured out that it's because of: // package.json { // ... "packageManager": "yarn@..." // ... } removing (or changing it to pnpm) would solve the issue. Additionally, yarn.lock existence doesn't have do with issue.

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/fcad4c7b5d7bd8cb1389dd74e06689a67353a816aba4ab7b117faf6e676405b3
hash \u00b7 fcad4c7b5d7bd8cb1389dd74e06689a67353a816aba4ab7b117faf6e676405b3
`pnpm install` Usage Error: This project is configured to us… — DepScope fix | DepScope