yvm icon indicating copy to clipboard operation
yvm copied to clipboard

Installing yarn with homebrew: Error: invalid option: --without-node

Open spacejamjim opened this issue 3 years ago • 3 comments

Describe the bug When running: brew install tophat/bar/yvm --without-node I receive an error Error: invalid option: --without-node

To Reproduce ❯ nvm -v 0.39.1 ❯ node -v v16.13.1 ❯ brew --version Homebrew 3.3.9 ❯ brew install tophat/bar/yvm --without-node ... homebrew updating stuff ... Error: invalid option: --without-node

Expected behavior Should install yvm

Desktop (please complete the following information):

  • OS: macOS Monterey 12.0.1
  • Shell: zsh
  • Node version: 16.13.1

spacejamjim avatar Jan 07 '22 14:01 spacejamjim

i have the same issue. Any solutions?

sinau123 avatar Feb 02 '22 10:02 sinau123

Looks like the same underlying problem as https://github.com/yarnpkg/yarn/issues/6946

noahnu avatar Feb 20 '22 17:02 noahnu

You can workaround this by first tapping the bar and then installing

brew tap tophat/bar
brew install yvm --without-node

Although I then ran into some other issue

Failed to execute: node

Removing the --without-node solve all the installation issues on my end, but it seems like a Homebrew issue unrelated to the yvm formula

iamogbz avatar Feb 20 '22 17:02 iamogbz

The yvm project has been deprecated in favour of corepack which is distributed with NodeJS v14+. This repository is being archived as part of general open source maintenance and cleanup in this org.

noahnu avatar Sep 01 '22 01:09 noahnu