Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 237 forks source link

`brew install yarn` does not support `--without-node` #928

Closed eGust closed 5 years ago

eGust commented 5 years ago

Missing option --without-node for yarn which is available on mac.

What you were trying to do (and why)

Install yarn without node. Because I am using nvm to manage node.

What happened (include command output)

I could install yarn without node by --ignore-dependencies. But brew doctor will come with a warning message:

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
  brew install node

Run `brew missing` for more details.

What you expected to happen

Be able to brew install yarn --without-node

Step-by-step reproduction instructions (by running brew commands)

brew install yarn --without-node
brew install yarn --ignore-dependencies
brew doctor
iMichka commented 5 years ago

See https://discourse.brew.sh/t/brew-install-yarn-without-node-busted/4087/5.

And especially:

yarn depends on node : it does not function without it. #31510 5 provides context. Instead of trying to install without Homebrew’ node instead adjust your PATH so nvm 's node s are before Homebrew’s node .