-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fail in cleaner fashion if user runs gatsby develop in a non-gatsby directory #379
Comments
Hi @KyleAMathews, I'm going to take this one too if that's alright with you. I'm thinking adding a check towards the top of
|
Hey great! Yeah disable global install working at all. An html.js is
|
@nason @KyleAMathews I was actually creating this exact ticket when I discovered that one already existed. May I recommend that we use this to provide some good UX around telling the user what files gatsby needs in order to be used properly. We should make sure it works well across various gatsby commands. Thoughts? It seems the |
@vinnymac thanks! CRA is great inspiration. it was super simple to drop-in that module and replace the one I had started on. @KyleAMathews sorry last week got a bit busy for me! I opened PR #583, let's chat about it there |
The related PRs have been closed already. Closing this. |
If this is done can we move it to the "done" section on the roadmap? |
Right now it complains about their not being a local gatsby install and throws out a bunch of cryptic errors and then quits. I was helping a friend setup Gatsby and they got stuck for a bit as they hadn't entered the new gatsby directory after running
gatsby new
.It's now been ~6 months since we added support for Gatsby being a local install. I think at the next minor version we should enforce this and not run gatsby develop/build unless gatsby can find itself (haha) in node_modules.
The text was updated successfully, but these errors were encountered: