Yarn: brew upgrade yarn has no ignore dependencies option, it install node again.

Created on 27 May 2019  路  2Comments  路  Source: yarnpkg/yarn

Why brew upgrade yarn can't provide --ignore-dependencies?

It installed node again, I previously installed nvm.

Does my environment mess up?

Thank you!

Most helpful comment

Hi @rockmandash,

Try to put nvm after brew / yarn in your path. Generally brew should only upgrade yarn itself. But afaik the team of Homebrew has an ongoing issue about this. You might want to file the issue there.

All 2 comments

Hi @rockmandash,

Try to put nvm after brew / yarn in your path. Generally brew should only upgrade yarn itself. But afaik the team of Homebrew has an ongoing issue about this. You might want to file the issue there.

The --ignore-dependencies flag still works on install.

So you can do this until the homebrew folk block that as well:

brew remove yarn
brew install yarn --ignore-dependencies
Was this page helpful?
0 / 5 - 0 ratings