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

" npm run dev " not working in windows system #1

Closed
bharathmit opened this issue Aug 30, 2021 · 2 comments
Closed

" npm run dev " not working in windows system #1

bharathmit opened this issue Aug 30, 2021 · 2 comments

Comments

@bharathmit
Copy link

Hi team,

I am new to react js , while I setup the code and run the script getting below error in npm run dev script.

image

@SimonHasak
Copy link

Windows terminal and Unix (Mac/linux) doesnt have the same commands. What you can try is to install Windows Subsystem for Linux (wsl2 is the most new version) or cygwin for kind of enabling unix commands in windows. Check definitions by yourself. I was trying different project with cygwin but there were others problems regarding OS so I used virtual machine. Or you can try Visual Studio Code. My coworkers are using it and are saying it has shell terminal but wasnt working for me also.

@bharathmit
Copy link
Author

Now able to run in windows,

chmod +x ./env.sh && ./env.sh && cp env-config.js ./public/ && react-scripts start

step 1: run the env.sh file from cmd or powershell - It will generate env-config.js root directory
step 2: move the env-config.js into public folder
step 3: run --> react-scripts start ----> it will run the reactjs app

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

2 participants