The ‘create-react-app command not found’ error occurs because we’re trying to run it locally when it’s not installed.
To fix that, we should run
npm i -g create-react-app project-name to install it globally on our computer and run it.
Alternatively, we can also run
npx create-react-app project-name to run it without install it.
In both cases, we need Node.js with NPM installed to run
If not, then we’ve to install it.