Homebrew-core: Yarn should include an option `--without-node` to skip installing NodeJS

Created on 29 May 2017  路  2Comments  路  Source: Homebrew/homebrew-core

Ref: https://github.com/Homebrew/homebrew-core/blob/master/Formula/yarn.rb

Currently there is no option --without-node when installing Yarn.

The reason I'm requesting this as per the discussion in https://github.com/yarnpkg/yarn/issues/3255 in that when using nvm you want to use the nvm installed version of NodeJS, not a system-wide version installed by Homebrew.

To update the Yarn docs for the recommendations when using nvm, first Yarn when installed with Homebrew will need this --without-node option.

_p.s. I read the issue template and as this issue is a feature request for an existing package that currently works as expected I removed the template info_

Most helpful comment

You can use --ignore-dependencies

All 2 comments

Since Yarn requires that a Node installation exists, we would need a special :node dependency that wouldn't mandate a Homebrew installation of Node. There's been some work on that in the past, but it's never been completed: https://github.com/Homebrew/brew/pull/1408

You can use --ignore-dependencies

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tdenley1 picture tdenley1  路  44Comments

AirPort picture AirPort  路  52Comments

xu-cheng picture xu-cheng  路  63Comments

RandomDSdevel picture RandomDSdevel  路  43Comments

fxcoudert picture fxcoudert  路  49Comments