Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'react-scripts' is not recognized as an internal or external command, operable program or batch file. #10

Open
utkzas opened this issue Jan 25, 2020 · 4 comments

Comments

@utkzas
Copy link

utkzas commented Jan 25, 2020

I am creating a MERN Stack App and when I run nodemon server, i get this error
C:\Users\utkarsh\chaiDB\mern-chaicoffeebiscuit>nodemon server [nodemon] 2.0.2 [nodemon] to restart at any time, enter rs[nodemon] watching dir(s): *.* [nodemon] watching extensions: js,mjs,json [nodemon] startingreact-scripts start server 'react-scripts' is not recognized as an internal or external command, operable program or batch file. [nodemon] app crashed - waiting for file changes before starting...

It worked succesfully until i started to work on the frontend using reactJS.
Now I have the full app completed. but the mongoDB server does not run now.
I have already tried commands like npm install react-scripts --save but still, i see the same error. I even reinstalled my Windows 8.1 (i loved the project by my heart and wanted to complete it)

@utkzas
Copy link
Author

utkzas commented Jan 25, 2020

please help me, this was my first app using MERN

@kazmiali
Copy link

Make sure that you have run npm install in the backend and in the main folder.

@sampathracherla
Copy link

Hi utkzas - did that resolve the issue?- Im getting the same error and here are the my versions: - Can anybody please help - thanks

PS C:\Users\sampa\mern-excercise> nodemon server
[nodemon] 2.0.4
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting react-scripts start server
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...

[nodemon] 2.0.4
npm -v -6.14.6
node -v - v12.18.3

@utkzas
Copy link
Author

utkzas commented Oct 2, 2020

Hello @sampathracherla

The folder you are accessing is PS C:\Users\sampa\mern-excercise>
which is not your backend folder.
Try doing cd backend and then run nodemon server

Regards
Utkarsh Sharma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants