You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently ran across a repo that uses a recent version of Yarn (https://github.com/mastodon/mastodon/ which recently switched to Yarn 4.x) and I had yarn 1.x installed globally so ni thought it was the right version to run.
Even though un-installing my global (1.x) version of yarn "fixed" the issue, Yarn's documentation states that modern releases aren't meant to be installed globally so I feel like running corepack enable would be a better fix.
@antfu How about we integrate the corepack command into ni, corepack is a package manager version manager, it support npm, yarn, pnpm, as this blog says
Describe the bug
I recently ran across a repo that uses a recent version of Yarn (https://github.com/mastodon/mastodon/ which recently switched to Yarn 4.x) and I had yarn 1.x installed globally so
ni
thought it was the right version to run.Even though un-installing my global (1.x) version of yarn "fixed" the issue, Yarn's documentation states that modern releases aren't meant to be installed globally so I feel like running
corepack enable
would be a better fix.Reproduction
clone https://github.com/mastodon/mastodon/, run
ni
with yarn 1.x installed globallySystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: