Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 337
Ahmed Shaqanbi Avatar asked Sep 03 '25 15:09

Ahmed Shaqanbi


1 Answers

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.

like image 88
3 revsAhmed Shaqanbi Avatar answered Sep 05 '25 16:09

3 revsAhmed Shaqanbi