-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
corepack now needs to re-enable every time upgrades node formula #198728
Comments
What creates those symlinks? |
|
Then the corepack/node developers should probably fix that. All homebrew does is |
But I think it is hard to tell corepack to use a permanent (symlink) path like /opt/homebrew/opt/node/... instead of real path I think most good choice for corepack user is (re)split corepack formula from node and enables every binary in install phase. (sorry for suddenly ping, but @ovflowd might be want to know this issue because of #193982 ) |
That only tells Node to bundle the corepack binary, but not enable corepack. There isn't currently an environment variable to tell if corepack should be enabled, the corepack enable command must be executed. Note that "corepack enable" is more about enabling corepack for X package managers (if no argument provided it does for all of them) I do think it is a command you should run on every upgrade, as corepack also does certain checks regarding versioning of package managers. |
And yes, I agree that this isn't a Homebrew bug. Please report an issue on nodejs/node, I believe what you want is permanent corepack enablement even if Node.js version switches (i.e by some sort of .dotfile on home/profile folders idk) |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
node
corepack enable
brew upgrade
What happened (include all command output)?
after upgrade,
/opt/homebrew/bin/pnpm
will not work, since symblic link is depending to specific node version.What did you expect to happen?
binary created by
corepack enable
(e.g.yarn
,pnpm
, ...) should still work after upgrades node formula.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: