# delete the node_modules
rm -rf node_modules
# delete the package-lock.json or yarn.lock
rm -f package-lock.json
rm -f yarn.lock
# clean the npm cache
npm cache clean --force
# Install the dependencies
npm install
To Solve sh: react-scripts: command not found Error Just try to install react-scripts with this command: npm i react-scripts And then try to run your project with npm start command Your error should be fixed now.
rm -rf node_modules 'Remove packages installed
npm install 'Install all packages
"start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start"