0

In my package.json file, I have the following scripts:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

When I use "npm run" it shows the following available scripts:

Lifecycle scripts included in swap@0.1.0:
  start
    react-scripts start
  test
    react-scripts test

available via `npm run-script`:
  build
    react-scripts build
  eject
    react-scripts eject

However, whenever I use "npm run start" or "npm run-script start", I get the following error: sh: react-scripts: command not found

Any ideas are appreciated; I can't seem to find any clues.

JStepp
  • 1

1 Answers1

0

im pretty new to this too, but you're supposed to run "npm start" to run your application. remove the "run" part and try it out

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 29 '22 at 20:31