command yarn start not found after cloning the project from github

Viewed 49

i cloned a project from github . when i try to run yarn it successfully install the required packages . but when i try to run yarn start i get error . please check below screenshot . i searched alot and i get to know that package.json dont have a start object so i copy paste many ones from internet after looking for solutions but none of them is working . i will be thankful if u help me to fix my bug . enter image description here enter image description here

1 Answers

normally when create new project, at "package.json" there is lines like this:

 "scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},

try to add manually

"start": "react-scripts start",

Related