-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Installing gatsby-cli with yarn does not work #8138
Comments
Have you added yarn's global dir to your PATH? |
Hi @palerdot, any updates on the suggestions provided by @stefanprobst? |
@kakadiadarpan @stefanprobst For now, I have already installed with |
Sure. For now, we'll be closing this. Please reopen if you still face this issue. |
@stefanprobst @kakadiadarpan adding yarn bin to path works. This should be mentioned somewhere in the docs, just in case. |
"The above command does not work" is not enough for search. Could you add the error message for this command? |
This is a known issue with Yarn and not directly related to Gatsby. |
Well, with me what happens is
|
Facing this issue as well!
|
Please check your |
Forgot to check that, Fixed My issue! Thanks! |
@Ri2parna |
I forgot to add the yarn path to my $PATH, so i found out the directory which is why the installed packages were not showing in my terminal. I found the yarn directory to be added to the path by using |
yarn global add gatsby-cli
The above command does not work. I have to use npm (
npm install -g gatsby-cli
) to make it work. Not sure if this issue is consistent across systems.Summary
Relevant information
Environment (if relevant)
System Details:
System:
OS: Linux 4.4 Ubuntu 16.04.1 LTS (Xenial Xerus)
CPU: x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
Shell: 4.3.46 - /bin/bash
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
Yarn: 1.9.4 - /usr/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.4/bin/npm
npmGlobalPackages:
gatsby-cli: 1.1.58
File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: