docs(tutorial): tutorial/part-three -> walkthrough failing if yarn is selected as packageManager
See original GitHub issueSummary
when the packageManager
in ~/.config/gatsby/config.json
set to yarn
then the walkthrough failing (see related issues)
Basic example
Possible changes and enhancements:
- warning, when yarn is selected as packageManager but a
package-lock.json
exists and is newer than theyarn.lock
- allow to set the
packageManager
per project folder - add a hint to the tutorial to try
yarn
?
… other ideas?
Motivation
no error while walkthrough
related Issues
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Yarn Package Manager Crash Course - YouTube
In this video we will look at the Yarn package manager and talk about what it is and then jump in and look...
Read more >Install and Use the Yarn Package Manager - Linode
This guide will show you how to install and use the Yarn package manager, a great alternative to NPM which you can use...
Read more >A Quick Introduction to the Yarn Package Manager
Yarn is a new package manager for JavaScript that aims to be a faster and safer alternative to npm. Learn the basic commands...
Read more >JavaScript Package Manager – Complete Guide to NPM and ...
A package manager is a tool developers use to automatically find, download, install, configure, upgrade, and uninstall a computer's packages.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My walkthrough also failed in tutorial three when using npm install for typography, but was successful with yarn:
yarn add gatsby-plugin-typography react-typography typography typography-theme-fairy-gates
@muescha i was going over this and it seems that the middle one could be the way to go.
When the user installs the cli globally he has the option to set the package manager. When he uses the cli it will default to the one set at the time of installation. But like other CLI’s that exist something like CRA and the vue cli they allow you to initialize the project with package manager of choice through a flag or option-
More even that there’s probably some users that installed yarn at some point but never get around it, or haven’t shifted to their mental model, also after doing a quick check on the documentation, more specifically the tutorial tends to use npm instead of yarn.