Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Instructions to decouple yarn from node generate error #358

Open
linc opened this issue Jul 4, 2019 · 1 comment
Open

Instructions to decouple yarn from node generate error #358

linc opened this issue Jul 4, 2019 · 1 comment

Comments

@linc
Copy link
Contributor

linc commented Jul 4, 2019

The docs state:

# Make sure not to link these or a yarn upgrade will upgrade your node!
brew install yarn --without-node

When I run that command, yarn reinstalls and generates this error:

Error: invalid option: --without-node

@charrondev
Copy link
Contributor

Blame the brew maintainers. yarnpkg/website#913

This flag isn't supported anymore. The reasoning for it was that many junior devs don't know how to manage their $PATH env variable, and brew sucks! Yarn will prompt them to upgrade yarn, and then doing that through brew will upgrade node to whatever bleeding edge version is out. Then you end up with a bunch of broken versions of node-sass.

We should replace the instruction with

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

Yarn should not be managed through brew. It just causes issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants