Debug School

rakesh kumar
rakesh kumar

Posted on

React error:'react-scripts' is not recognized as an internal or external command,operable program or batch file

today when i run command npm start
I got error 'react-scripts' is not recognized as an internal or external command,operable program or batch file

Solution:
The error message you're seeing indicates that the react-scripts package is not installed or not recognized in your project. This package is essential for running React applications using the development server. To fix this issue, you need to install react-scripts as a development dependency in your project.

Here's how you can do it:

Open a terminal or command prompt in the root directory of your project.

Run the following command to install react-scripts:

npm install react-scripts --save-dev
Enter fullscreen mode Exit fullscreen mode

This will install react-scripts and save it as a development dependency in your project's package.json file.
=================Or========================

npm install --force

npm start
Enter fullscreen mode Exit fullscreen mode

Top comments (0)