This is not a Grit project

The command looks for grit.json at the project root and did not find it here or in any directory above.

The fix

Move into the directory that grit new created.

Terminal
$cd myapp
$ls grit.json # it should be here

Or make one, if you have not yet:

Terminal
$grit new myapp

Why it happens

Almost every Grit command needs to know where the project root is, because it writes into several apps at once and the paths differ by architecture. grit.json is how it finds that root, and the search walks upwards, so being in a subdirectory is fine.

Two cases that look like this and are not. If grit.json exists and the command still refuses, it may be unreadable or not valid JSON; open it. And grit doctor --env deliberately does not need a project, because it answers whether the machine is ready before there is one.

How to tell it worked

Terminal
$grit doctor

Still stuck? The troubleshooting page covers more, and the errors guide lists every message with its cause. Running grit doctor --env checks this machine for all of them at once.