-
Notifications
You must be signed in to change notification settings - Fork 981
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
Homebrew option --ignore-dependencies
is unsupported
#941
Comments
🤔 I guess that's the best solution for now then. Do you want to create a PR to list the fact that you can no longer ignore node in the homebrew instructions? |
Yep, I can open a PR 👍 I saw some discussion in #913 about possibly including the shell script install method as an alternative. Do you think that's worth adding, or just stick with a note about not having a way to ignore the node dependency via Homebrew? |
Yes, I think the shell installation is the only way I can think of (that I use myself too) to properly avoid node, so it should be listed as an alternitive |
@Haroenv 👋 it'd be good on the Homebrew side to figure out how us installing |
That's a very good point, but I'm not too sure what the solution is. Installing it with homebrew (as a duplicate) can easily cause problems with e.g. nvm. How do other packages deal with this? |
@Haroenv Adjusting your PATH so |
Then I suggest changing that text to:
Without code sample |
That would avoid some issues, but prior to nvm v0.34.0 having another
|
The Yarn documentation says to install Yarn via Homebrew like so:
It looks like this stemmed from #913 / #916.
I found that when using
brew upgrade
later on, dependencies foryarn
were not ignored, causingnode
to be installed via Homebrew. I opened an issue with Homebrew about this (Homebrew/brew#5967), and found that the--ignore-dependencies
was meant to be used by Homebrew developers only, and is not a supported flag.Homebrew has updated their documentation to point this out (Homebrew/brew#5970), so the Yarn documentation should probably not instruct users to use this flag anymore.
I'm not sure what the documentation should say instead, though. At least in my case, having
nvm
and Node via Homebrew doesn't cause errors anymore, I just have an extra copy of Node installed that will never be used.The text was updated successfully, but these errors were encountered: