Gatsby: Yarn support in Plugins Page

Created on 28 Jun 2018  路  8Comments  路  Source: gatsbyjs/gatsby

As yarn isn't going anywhere & I think most people use that, so yarn support on the plugin website might be good.

Checkout https://next.gatsbyjs.org/packages/gatsby-plugin-emotion/

A tab which selects yarn or npm might be helpful for most for directly copy-pasting commands into terminal

question or discussion

Most helpful comment

NPM is the default. We might add a way to choose to see yarn instructions instead of NPM but we're not going to work on this right now.

All 8 comments

npm is integrated in Node (which is a requirement) so all are on the same page. People just starting in the JS business won鈥檛 know yarn.

People using yarn just copy an extract of that line. That鈥檚 not a problem at all in my opinion.

We've gone with npm so far because it's the default that comes with node. I think (maybe I'm wrong) that everyone that's familiar with using yarn is also familiar with using npm and can translate the commands themselves.

However if there's a simple way of making both options available, that also isn't confusing to newcomers (_what's yarn? why do I need to choose between that and npm?_) then that could be worth exploring. Note that the plugin library pulls in README files from all Gatsby plugins that exist on npm.

Yep I know that people familiar with yarn know npm very well, but when I have npm & yarn both installed, Gatsby default installs with yarn. I just checked :)

So for experienced programmers, directly a copy-paste snippet from the website supporting yarn is a huge time-saver as people care about seconds 馃槀

The thing is nobody in the world who will try Gatsby once will go back to using something else. And people are making lots of websites with it so it gets kinda boring after a while to copy npm snippet then delete npm install --save & add yarn add.

Also, with v2 as plugins are separated, people won't be typing but copy-pasting. Also, a copy button would be nice. Plugins usage is done a ton of times while making a website so it may save some minute(s)

Its not an issue, but a feature great to have :)

I agree a copy button would be nice to have - there's an issue to add that to the tutorials.

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

I think this should be re-opened bcz lots of people use yarn due to weird bugs npm faces from time to time

NPM is the default. We might add a way to choose to see yarn instructions instead of NPM but we're not going to work on this right now.

Sure no problem. Maybe add a label on such issues something like fix-later or something so someone can take it at a later point in time. Also, would be helpful for beginners to contribute to issues like this :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

totsteps picture totsteps  路  3Comments

jimfilippou picture jimfilippou  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments

dustinhorton picture dustinhorton  路  3Comments

KyleAMathews picture KyleAMathews  路  3Comments