I'm trying to start a react js project but the npm start command doesn't do anything. No error messages. No exceptions. Just nothing.

I already have a start script in the package.json file.
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
I've also checked for missing dependencies but nothing is missing.
Is there something I'm missing here?
You need to make sure that the package. json file is present from where you run the npm start command. When you don't see the package. json file, then run the pwd command to see if you are in the right directory.
'npm start' is used for executing a startup script without typing its execution command.
Nope, Anything you change over code, build will rerun for that change.
SOLUTION:
My npm ignore-scripts was set to true. So I set it to false and the npm start command works.
npm config set ignore-scripts false
To check if your ignore-scripts is true or false:
npm config get ignore-scripts
Thanks @RobC for the answer NPM run * doesn't do anything
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With