1

I'm learning React JS where I made 1 project folder named testing & it runs successfully. However when I started to create another project folder named hello, suddenly I ran into an error on both testing & hello projects & both said, localhost refused to connect. Maybe because I created both project folders in the same folder named training & I want to delete the hello project. Because I'm new to React, I want to know how to delete the hello project folder...

Here are my directory for both project folders btw:

C:\Users\Ernes\training\testing

C:\Users\Ernes\training\hello

  • `localhost refused to connect` - Are you trying to run both dev servers at the same time? Press `ctrl+c` to stop the dev server for `testing` before attempting to start `hello` – ksav Jun 28 '22 at 15:14
  • Sorry if this sound embarrassing but I don't really know what I'm doing, I just follow the tutorial book & the book kinda says to create another project on the same folder. And do you mean to press ctrl+c in VS Code? – Ernest Daniel Jun 28 '22 at 15:19
  • What's the tutorial book? – ksav Jun 28 '22 at 15:20
  • ReactJS guide book – Ernest Daniel Jun 28 '22 at 15:21
  • https://superuser.com/a/179661 will tell you how to delete a folder – ksav Jun 28 '22 at 15:23

1 Answers1

1

Stop npm service, then delete hello folder. You can run different projects at same time, but you should use different port. You can find port configuration details package.json file