close

[Fixed] sh: react-scripts: command not found

Today We are Going To Solve sh: react-scripts: command not found in Reactjs. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix sh: react-scripts: command not found Error?

  1. How to Fix sh: react-scripts: command not found Error?

    To Fix sh: react-scripts: command not found Error just Use the command. To solve this error you can try the given below command. Just use npm i react-scripts

  2. sh: react-scripts: command not found

    To Fix sh: react-scripts: command not found Error just Replace with. You can solve this error by changing the below line in your package.json file.
    "start": "react-scripts start" Replace with. "start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start" And you can solve your error.

Solution 1 : Use the command

To solve this error you can try the given below command. Just use

npm i react-scripts

Solution 2 : Replace with

You can solve this error by changing the below line in your package.json file.

"start": "react-scripts start"

Replace with.

"start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start"

And you can solve your error.

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read This Solutions

Leave a Comment