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.
Contents
How to Fix sh: react-scripts: command not found Error?
- 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
- 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
- The minCompileSdk (31) specified in a dependency’s AAR metadata is greater than this module’s compileSdkVersion
- Create React App requires Node 14 or higher. Please update your version of Node
- DeprecationWarning: executable_path has been deprecated, please pass in a Service object
- cv2.error: OpenCV(4.5.2) color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor’
- Can’t import the named export ‘Children’ from non EcmaScript module (only default export is available)