Skip to content
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

No option to change package manager #17094

Closed
ozburo opened this issue Aug 26, 2019 · 2 comments
Closed

No option to change package manager #17094

ozburo opened this issue Aug 26, 2019 · 2 comments
Labels
topic: cli Related to the Gatsby CLI

Comments

@ozburo
Copy link

ozburo commented Aug 26, 2019

When I/you first install Gatsby it asks you what package manager you wish to use, however there's no way to change this afterwards.

It would be nice to have an option to do this? Say from CLI gatsby pkg or whatever...

I chose yarn because of muscle memory but I've been reading how npm has improved greatly in the last year since my last foray into frontend dev it would be nice to go and give it another try. The fact that most (if not all) your docs reference npm and not yarn is causing my itch to switch.

Anyhoo, I tried reinstalling Gatsby over the top but it's still using my original setting (yarn).

@lannonbr lannonbr added the topic: cli Related to the Gatsby CLI label Aug 27, 2019
@lannonbr
Copy link
Contributor

The Gatsby CLI uses configstore to make a config file that stores these options. On Mac / Linux / WSL, it is available at ~/.config/gatsby/config.json. Try deleting that file and run the CLI again. Not sure exactly where it is on windows machines though.

@ozburo
Copy link
Author

ozburo commented Aug 27, 2019

Brilliant thanks!

Happy to close this issue unless anyone sees merit in discussing this further with regards to adding this feature to CLI or perhaps creating/adding this tip to the documentation. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cli Related to the Gatsby CLI
Projects
None yet
Development

No branches or pull requests

2 participants