Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm using nvm, cannot install yarn via homebrew #3078

Closed
Ding-Fan opened this issue Apr 8, 2017 · 5 comments
Closed

I'm using nvm, cannot install yarn via homebrew #3078

Ding-Fan opened this issue Apr 8, 2017 · 5 comments

Comments

@Ding-Fan
Copy link

Ding-Fan commented Apr 8, 2017

Do you want to request a feature or report a bug?

bug

What is the current behavior?

  • I use nvm, and the node version is v6.10.0 in current terminal

I'm installing yarn via homebrew, but receiving this error:

Error: You must brew link node before yarn can be installed

If the current behavior is a bug, please provide the steps to reproduce.

brew install yarn

What is the expected behavior?

It should normally install yarn without error...

Please mention your node.js, yarn and operating system version.

  • nvm 0.33.0
  • node v6.10.0
  • yarn latest version
  • operating system mac OS Sierra 10.12.1
@gibfahn
Copy link

gibfahn commented Apr 9, 2017

brew install yarn works if you did brew install node. If you're using nvm, I'm pretty sure you can just install with npm install -g yarn as mentioned in the install docs.

@binarykitchen
Copy link
Contributor

@gibfahn but install docs do not recommend installing yarn through npm. and yarn hasn't been updated on npm for a while ... can you explain this?

@gibfahn
Copy link

gibfahn commented Apr 26, 2017

@binarykitchen afraid not, I haven't worked on yarn, I just happened to see this issue.

Your issue #3255 seems to cover the issue adequately.

@binarykitchen
Copy link
Contributor

yep ... wait see what will happen on that issue

@rouzbeh84
Copy link

I know this is closed but i did a brew uninstall yarn and then the suggested npm install yarn -g from @gibfahn followed by yarn global upgrade yarn per docs (well i had to sudo it 😬 ) and it seems to have worked great!

yarn global v0.27.5
warning package.json: No license field
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
success Saved lockfile.
success Saved 1 new dependency.
└─ yarn@0.27.5
warning No license field
Done in 3.58s.

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

No branches or pull requests

4 participants