{"id":773,"hash":"fcad4c7b5d7bd8cb1389dd74e06689a67353a816aba4ab7b117faf6e676405b3","pattern":"`pnpm install` Usage Error: This project is configured to use yarn","full_message":"I am trying to migrate from yarn to pnpm. I ran pnpm install. It instantly failed and printed to the console:\n\nUsage Error: This project is configured to use yarn\n\n$ pnpm ...\n\nI tried removing (renaming actually) yarn.lock and node_modules but to no avail. How to solve this?","ecosystem":"npm","package_name":"yarnpkg","package_version":null,"solution":"I figured out that it's because of:\n\n// package.json\n{\n // ...\n \"packageManager\": \"yarn@...\"\n // ...\n}\n\nremoving (or changing it to pnpm) would solve the issue. Additionally, yarn.lock existence doesn't have do with issue.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/72201239/pnpm-install-usage-error-this-project-is-configured-to-use-yarn","votes":31,"created_at":"2026-04-19T04:51:41.433846+00:00","updated_at":"2026-04-19T04:51:41.433846+00:00"}