-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Question: Why did yarn was chosen instead of npm? #1603
Comments
This is not a Webpacker decision, but a Rails one. Yarn is the JS package manager integrated with Rails so Webpacker uses it. |
Yarn is directly supported since Rails 5.1, but more importantly, dhh likes it so.. More info: http://g3ortega.com/rails/2017/05/30/rails-5-1-and-forward-yarn-on-rails.html |
Thanks for the info. I'm going to ditch both yarn and webpacker all together for future projects. Just npm and webpack (the node module, not this gem) would generate fewer hassle these days. With a little Ruby code, we are able to glue everything together nicely. (See Thanks a lot, everyone who made the webpacker possible. It was a good ride. |
It's pretty straight forwards to make webpacker play nice with npm. There is a nice guide here: However I do agree that out of the box support for npm or, just moving to npm now that it has caught itself up would be much preferable. |
Hi all, based on this comment in this article as well as this comment in a separate issue, it is no longer trivially possible to move to npm. |
Additionally, see: #2467 (comment) |
I just wanted to know the rationale behind the decision.
npm
is the default of the javascript community. I am curious why webpacker insist on using yarn.The text was updated successfully, but these errors were encountered: