Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make installin a Berry project failed withyarn: No such file or directory, and every obvious way of fixing that collides with something already installed.brew install yarnis 1.22, which cannot read a__metadata: version 6lockfile and has no--no-immutable.brew install corepackwants to unlink the Brewfile'spnpm— the formulae both ownpnpmandpnpx.npm i -g corepackfails the same way,EEXIST /opt/homebrew/bin/pnpm.So
make appsinstalls corepack under its own prefix, where its pnpm and pnpx shims are out of everyone's way, and links onlyyarn,yarnpkgandcorepackinto~/.local/bin. Homebrew's pnpm stays exactly where it was. Nothing here pins a yarn version — corepack reads each project'spackageManagerfield, so a repo asking for yarn@4.7.0 gets 4.7.0.Two supporting bits:
.bashrcnow puts~/.local/binon PATH, because Ubuntu's~/.profileonly does that if the directory existed at login and on a machine being set up it did not (macOS already had the line inos/macos/.zshrc); and the Brewfile says next topnpmwhy yarn has no line of its own there.Verified by running the recipe against a throwaway $HOME: the three shims appear, no pnpm shim does, and
yarn --versionin a project pinned to 4.7.0 prints 4.7.0.make qapasses.