Isuke FUJIYAMA
Isuke FUJIYAMA

Reputation: 125

How to upgrade yarn without node with brew

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 :(

Upvotes: 2

Views: 2435

Answers (2)

Vahid Alimohamadi
Vahid Alimohamadi

Reputation: 5858

Just update it using itself!:

yarn global upgrade yarn or :

yarn global add yarn

Also you can istall or update it, using npmglobally.

Upvotes: 0

Juan Marco
Juan Marco

Reputation: 3241

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

Upvotes: 1

Related Questions