How can i fix the npm start error problem in react?

65 views Asked by At

After installing react, I'm trying to use the command:

npm start

to run react app but it gives me this error. Error details

code NOENT

3

There are 3 answers

1
user23644850 On

delete node_modules and package-lock.json file.

then run,

npm i legacy-peer-deps or npm i --force

hope this will fix your error, try to share package.json file for such errors

0
Hasindu Dahanayake On

go to the my-app directory and run the command npm start

0
todevv On

You are not in the correct directory. At the moment of execution you are in React LEAR but you package.json is inside my-app. Go inside my-app and then execute npm start