Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2022-05-20 19:00:28 | ![]() 16,962 Views |
I will use command
npm start
This will start the app.
I can stop the app by using CTRL + C from keyboard.
I can start the app again as normal.
If I use the command again and run the app
npm start
it starts again.
If i close the terminal without stopping previous process, it says:
Port 3000 already in use
or
Something is already running on port 3000.
We can find specific port (in this case 3000) by using following command on Windows & using Git for Windows
netstat -ano | findstr :3000
We can get kill task help by using following command
taskkill /?
Then I will end process on port 3000 by using this to kill task command
taskkill -f -pid 15984
-f flag force kill the running process
We can also end running task using npx command in case of React JS or Node JS
npx kill-port 3000
You can also kill task from task manager by ending Node JS task.
So this is how you can force terminate a task running on a port. When task will be terminated, port will be free and you will be able to use that port again.
Display Data From JSON File in React
https://youtu.be/4fCr1IepJRw
Display Icons / Images from JSON File in React JS
https://youtu.be/NWG1Ygt1k1k
Fetch All Types of Data from JSON File in React JS
https://youtu.be/8nkVXiGH-7I
7 Ways to use Images in React JS
https://youtu.be/U07wzhfu66M
Easy Way to use Images in React JS
https://youtu.be/0EtYzQn-Scw
Require Image Not Working in React JS
https://www.youtube.com/watch?v=ay6id01369s
Multiple Images in One Import
https://www.youtube.com/watch?v=gEMAZSO85KY
Multiple Sets of Images from One Import in React JS
https://www.youtube.com/watch?v=SpjzhwcMcbs
Default Map is not a Function in React JS
https://www.youtube.com/watch?v=XMm12Dw_Kpw
Async Await Fetch in React JS
https://www.youtube.com/watch?v=9fr7ytpvybY
Assigned a Value but Never Used
https://youtu.be/3_4QlPxuEK4
Easily Sort Before Displaying Records in React JS
https://youtu.be/zZzcnmU_LoU
Responsive Image Gallery from Scratch in React JS
https://youtu.be/J1dg4WXr3cg
ReactJS Playground
https://youtube.com/playlist?list=PL1w28LzkbaQEdqbLVVGuR46lriyR_Ifiy
JavaScript Problem Solving:
http://bit.ly/JavsScriptProblemSolving
Web Development Essentials:
http://bit.ly/WebDevEssentials
Crash Courses:
http://bit.ly/WSPCrashCourses
Thank You!
LIKE VIDEO
SUBSCRIBE
PRESS BELL ICON
️ COMMENT
Channel: https://www.youtube.com/webstylepress
Website: https://www.webstylepress.com
FaceBook: https://www.facebook.com/webstylepress
Twitter: https://twitter.com/webstylepress
GitHub: https://github.com/webstylepress
#js #reactjs #javascript #react #fix #port #WebStylePress #webdevelopment
Please take the opportunity to connect and share this video with your friends and family if you find it useful.