I\'m trying to run the React server by running npm start
When I do this I get a missing script error:
λ npm start
npm ERR! missing scrip
For windows
tried npm uninstall -g create-react-app that didn't work for me.
I did the following and it worked:
where create-react-app
it was somewhere in the system files under yarn. follow that path and delete both the files.npx create-react-app my-test-app
This will create a new folder called my-test-app and you can follow the rest of the instructions on the react app website.
cd into that new folder, run
yarn start
For me the problem was caused because npx create-react-app my-app
was not triggering npm install due to lack of user permission.
Please run :
sudo npx create-react-app my-app
Solves the problem.
Update create-react-app
package to solve this problem.
For updating the concerned package run the following command:
npm install -g create-react-app