'Command Not Found - npm run start - package.json

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 [email protected]:
  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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 wavebreaker