Skip to content

Should we encourage folks to use yarn instead of npm? #1746

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

Closed
jgeewax opened this issue Oct 24, 2016 · 6 comments
Closed

Should we encourage folks to use yarn instead of npm? #1746

jgeewax opened this issue Oct 24, 2016 · 6 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@jgeewax
Copy link
Contributor

jgeewax commented Oct 24, 2016

https://www.atatus.com/blog/everything-you-wanted-to-know-about-yarn-package-manager/

It seems it's getting some good reviews, and may help us get the install time down to a reasonable number. Any thoughts?

@jgeewax jgeewax added the type: question Request for information or clarification. Not an issue. label Oct 24, 2016
@stephenplusplus
Copy link
Contributor

I'm cool with recommending this 👍 How do you see us encouraging it?

  • Where we have npm install now, show yarn add
  • Where we have npm install now, add a quick link / explanation about yarn and its speed boost
  • Add a mention to it in Troubleshooting question:
    • Is the google-cloud module on npm really 800 MB?
  • Add a new question: "Can I use yarn?"
  • Other?

@bjwatson bjwatson added priority: p2 Moderately-important priority. Fix may not be included in next release. Status: Acknowledged labels Mar 2, 2017
@stephenplusplus stephenplusplus assigned swcloud and unassigned jmuk Jun 2, 2017
@stephenplusplus
Copy link
Contributor

I think with npm@5, the yarn performance benefits aren't as glaring. My vote would be to continue recommending npm.

@jmdobry @callmehiphop any thoughts?

@lukesneeringer lukesneeringer removed the priority: p2 Moderately-important priority. Fix may not be included in next release. label Jun 12, 2017
@jmdobry
Copy link
Contributor

jmdobry commented Jun 19, 2017

We've been using Yarn in all our Node.js samples since Yarn was version 0.16. The Google App Engine docs have a section on using Yarn. I think it's worth at least mentioning Yarn.

@danoscarmike
Copy link
Contributor

Ping for status on this? Is there an action for google-cloud-node or can I close this issue?

@stephenplusplus
Copy link
Contributor

I don't think it's necessary to mention yarn. As far as I know, any npm package is also supported by yarn, so we don't have to spell that out. I wouldn't go so far as to recommend that folks use yarn instead of npm. And I don't think yarn needs our help with marketing, if we were to only mention that it exists.

@lukesneeringer: how should we proceed?

@landrito
Copy link
Contributor

I agree with @stephenplusplus. Lets stick with simply documenting npm. Closing this. @lukesneeringer reopen if you feel we need to mention yarn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

9 participants