Reputation: 125
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
Reputation: 5858
Just update it using itself!:
yarn global upgrade yarn
or :
yarn global add yarn
Also you can istall or update it, using npm
globally.
Upvotes: 0
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