-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage Error: This project is configured to use yarn #424
Comments
That's the expected behaviour. See the documentation:
You can also explicitly call |
Even with no COREPACK_ENABLE_STRICT the error should not happen if |
Corepack has no knowledge of what the underlying package manager CLIs look like, and can only make trivial assumptions about it. If you want a similar behaviour, you'll need to |
Can be trivial if |
In my case, the error occurred because I had pnpm in the script that I was trying to run with yarn. |
If you have pnpm and yarn projects try change to yarn_project and run
pnpm --dir pnpm_project
or change to pnpm_project and runyarn --cwd yarn_project
. There is errorUsage Error: This project is configured to use yarn
. Should be no error to use like this.The text was updated successfully, but these errors were encountered: