Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to start yarn but I am facing following error: error Command “start” not found in ReactJS. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How error Command “start” not found Occurs ?
I am trying to start yarn but I am facing following error.
error Command "start" not found
How To Solve error Command “start” not found?
How To Solve error Command “start” not found?
To Solve error Command “start” not found You Just need to install npm first Just Run this command: npm install then run npm run Now, Your Erros should be solved.
error Command “start” not found
To Solve error Command “start” not found Here Maybe You Dont have start script in your package.json So that Just try to add start script Just like this: “start”: “your command to run” I am adding this in my start For Example: “start”: “webpack-dev-server –mode development”, Now, Your error must be solved.
Solution 1: add start script in package.json
Here Maybe You Dont have start script in your package.json So that Just try to add start script Just like this.
"scripts": {
"start": "your command to run", //Add This Line
}
I am adding this in my start For Example.
"scripts": {
"start": "webpack-dev-server --mode development",
}
Now, Your error must be solved.
Solution 2: Run this command
You Just need to install npm first Just Run this command.
npm install
Then Run
npm run
Now, Your Erros should be solved.
Solution 3: Try this
You need to run this command.
npm install --global yarn
Now, Your error should be solved.
Solution 4: Use this Command
Run,
yarn add react-scripts
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read