Yarn: Installation Problem: yarn installs older version via homebrew

Created on 10 May 2019  ·  4Comments  ·  Source: yarnpkg/yarn

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

Most helpful comment

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

All 4 comments

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 😅).

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

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

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

Was this page helpful?
0 / 5 - 0 ratings