Missing Start script

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:

  1. npm uninstall -g create react-app
  2. remove the react-app folder completely
  3. 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.)
  4. cd react-app
  5. npm start (should show basic web page)

Happy Hacking!

2 Likes

Hi, I’m having the original problem. When using the solution, I’m still getting the same error. I’m also still getting the same warning “a template was not provided. This is likely because you’re using an outdated version of create-react-app” after using npx create-react-app react-app