javascript – react-scripts is not recognized as an internal or external command

javascript – react-scripts is not recognized as an internal or external command

It is an error about react-scripts file missing in your node_modules/ directory at the time of installation.

Check your react-script dependency is avaliable or not in package.json.

If not available then add it manually via:

npm install react-scripts --save

If react-scripts is present in package.json, then just type this command

npm install

If react-scripts is not present in package.json, then you probably havent installed it. To do that, run:

npm install react-scripts --save

javascript – react-scripts is not recognized as an internal or external command

Try:

rm -rf node_modules && npm install

Wiping node_modules first, often tends to fix a lot of weird, package related issues like that in Node.

Leave a Reply

Your email address will not be published. Required fields are marked *