At start of Mastering React, you use npm i -g create-react-app@1.5.2 and then create-react-app react-app. Then cd react-app and npm start and it FAILS with missing script start.
The problem:
GLOBAL installs of create-react-app are no longer supported.
The solution:
- npm uninstall -g create react-app
- remove the react-app folder completely
- npx create-react-app react-app (should show “Happy Hacking!” at end of install if it completed correctly and you should see in your react-app folder, subfolders node_modules, public and src.)
- cd react-app
- npm start (should show basic web page)
Happy Hacking!