-
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
gatsby command not found #2137
Comments
Try uninstalling and reinstalling the global package. Probably just an install error. |
I've tried installing and reinstalling but I get the same error. (Also the same red error when listing the global packages). Any other direction you can point me to? |
Try Yarn |
The same result )-: |
Looking into this now: If I lookup "Gatsby" in this thread, the same issue is mentioned. |
You can search where npm install global packages and check if it is in your
path.
…On Sep 16, 2017 2:38 PM, "yaron" ***@***.***> wrote:
Looking into this now:
yarnpkg/yarn#2064 <yarnpkg/yarn#2064>
If I lookup "Gatsby" in this thread, the same issue is mentioned.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2137 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH_TYc6v1tn8t4YAm8ktDIbBG9xr-m9Bks5si8EogaJpZM4PZx5j>
.
|
Yarn sure solved the problem for me on Ubuntu |
Problem may be you switch your node version using |
not sure why but @Oluwasetemi your |
I had the issue after installing Gatsby globally several times on a mac (OS 10.13.2). I tried different node & npm versions. It turned out that the node/npm installs were not in the standard /usr/local/lib/ folder. I reinstalled both from https://nodejs.org/en/download/ making sure the location was correct and then cd to that location before installing Gatsby. Gatsby commands worked perfectly after that. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates. Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍 |
On the latest MacOS, I had to update my npm config.
|
None of the above work for me. I had to follow this StackOverflow: https://stackoverflow.com/questions/42285518/sh-sysctl-command-not-found-for-mac-os-x-running-a-cron-job But actually, I had to add |
This worked for me thank you very much |
Thank you so much! It works! |
I had the problem above...now by following this command it works also for me... |
I ran into this issue when installing (2.7.47) via npm on mac os. The fix for me (@Oluwasetemi solution):
|
This solution solved my problems, thank you. |
|
Thanks, this worked for me, however only npm works and yarn does not. |
node @8.2.1
[email protected]
Following the official guide I run:
npm install --global gatsby-cli
Then when running:
gatsby new tutorial-part-one https://github.com/gatsbyjs/gatsby-starter-hello-world
gatsby: command not found
When looking at the globally installed npm packages I get:

The text was updated successfully, but these errors were encountered: