-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Install yarn #1280
Comments
If node ships with yarn, then nvm will bring yarn along with it. Until then, |
As an |
Agreed. I wonder how |
@rgbkrk @nathansobo No they don't. The installation instruction you referred to needs to be there to make global installations work, but that doesn't mean they endorse the usage; it's more like for compatibility's sake. If you refrain from doing global installations, you can completely omit the Path Setup section and things will still work fine. |
I believe I would rather have all packages (global or otherwise) be installed by |
@seangates which issues specifically ? |
@seangates that's up to node, not nvm, since nvm manages node, not npm. However, I'd discourage ever installing anything globally - everything should be project-local. |
@ljharb Even @kane-thornwyrd http://stackoverflow.com/questions/40027819/when-to-use-yarn-over-npm-what-are-the-differences#40028313 |
Also, as a testament to this, multi-billion-dollar companies have quickly and with purpose adopted |
Do you folks not use |
@seangates use |
@seangates i have yet to see a single concrete problem scenario where npm shrinkwrap is less predictable than yarn - including from the yarn team. |
@seangates and yes, even yarn. The yarn team actually recommends installing yarn separately from npm, so if you follow their recommendation, it wouldn't be at all relevant to this thread. Separately, I don't yet believe yarn is production-ready, since it does not yet have feature parity with npm. |
I mean, why else would Facebook have created I guess what I'm hearing is that you folks are simply installing the vanilla node version, but keeping out of packages altogether? But ... yet you still will allow the install global packages as part of that process? What I want to know is: would you then be amenable to let someone implement a flag to use |
A great explanation: https://code.facebook.com/posts/1840075619545360
|
@ljharb It's production ready, and has been for quite a while. And it's been prod ready at Facebook for even longer than that, too. eBay has now adopted it as their package management for Node, which is hundreds of clusters and thousands of deployments. eBay (where I work) has been working closely with the Facebook teams to ensure continuity and stability in our infrastructure relating to |
@seangates no, i wouldn't be amenable, because nvm has nothing to do with package installation - it manages node. You can I would love to see one of your concrete scenarios where yarn's determinism prevents a problem that npm's lack of determinism causes - I've had many conversations with the yarn team, in person, and nobody has been able to provide a single one yet. (it's a bit gauche to thumb-up your own posts, btw) |
Well, I still stand by my comments about Also, I also stand by my comment that |
Also, I still don't understand this:
You supply a way to migrate packages, yet not to pick the way those packages will be installed. |
Yes, that's a good point. As soon as node ships with yarn, nvm will support yarn. I'm happy that yarn solves issues for whoever it solves them for - in no way does that provide a single concrete repro case that justifies any claims that yarn avoids bugs by more deterministic than npm. I'm still very interested in seeing yours, since nobody at Facebook has yet been able to provide me one. |
Let me hunt down the conversations (and scrub them for security). I hope to provide something first thing in the morning. Also, I think I may be bundling my comments more around how npm works with how |
Thanks; please feel free to email them to me directly if you prefer. Regardless, |
@ljharb Yeah, apologies on getting off track a little. I am interested in how the tools I use everyday can be improved to help me speed up my engineering efforts. |
Just an update for anyone who comes across this issue via Google search...Yarn documentation now says that Yarn can be installed without node like this: brew install yarn --without-node |
yarn is an alternative package manager (like npm).
It would be great if nvm also installs yarn as it does with npm.
A switch to decide whether to install yarn or npm or even both of them would be a great addition.
The text was updated successfully, but these errors were encountered: