yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Installation Problem: yarn installs older version via homebrew

Open AnnemarieD opened this issue 7 years ago • 4 comments

Which operating system are you using: MacOS 10.14.4

Please describe the steps you took when trying to install Yarn and what went wrong: I followed the installation steps on the Yarn website:

brew install yarn

Yarn installed without installing node, that was already on my machine. This resulted in the message:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/node
Target /usr/local/bin/node
already exists. You may want to remove it:
  rm '/usr/local/bin/node'

Nevertheless, the installation seemed to work fine.

When I ran

yarn install

I got a message saying my version of yarn is out of date. When trying the suggested command for update I got the following:

warning Your current version of Yarn is out of date. The latest version is "1.16.0", while you're on "1.15.2".
info To upgrade, run the following command:
$ brew upgrade yarn
✨  Done in 52.47s.
helenium:NodesUI adoran$ brew upgrade yarn
Updating Homebrew...
Error: yarn 1.15.2 already installed

AnnemarieD avatar May 10 '19 10:05 AnnemarieD

Same issue 👍

It looks like Yarns formula hasn't been updated for 1.16.0- which would be the cause of this.

Theres a failing(?) PR for updating the formula. HOWEVER, I just submitted one which hopefully passes jenkins (I've never contributed to Homebrew before so fingers crossed 😅).

kysley avatar May 10 '19 17:05 kysley

Additionally, the "installation script" option from the install page produces 1.15.2 instead of the latest.

NickHeiner avatar May 29 '19 23:05 NickHeiner

Hi the problem resurfaced again with version 1.17.3 with brew. Can you please make a pr to add it ??

hamza0867 avatar Jul 13 '19 14:07 hamza0867

Still seeing the out of date issue a.o. Thu 22 Aug

IanHakes-okta avatar Aug 22 '19 23:08 IanHakes-okta