2

If we are using nvm or ndenv, we use --ignore-dependencies option when installing yarn with brew for not install node.

In this case, how to upgrade yarn?

Here are the methods that failed.

$ brew upgrade yarn --ignore-dependencies
Error: invalid option: --ignore-dependencies
$ brew upgrade yarn # node is installed :(
CoryCoolguy
  • 1,065
  • 8
  • 18

2 Answers2

1

You can self update yarn using the official provided curl script:

curl --compressed -o- -L https://yarnpkg.com/install.sh | bash

See more about this here

Juan Marco
  • 3,081
  • 2
  • 28
  • 32
0

Just update it using itself!:

yarn global upgrade yarn or :

yarn global add yarn

Also you can istall or update it, using npmglobally.

Vahid Alimohamadi
  • 4,900
  • 2
  • 22
  • 37