
something is already running on port 3000 solved in react JS
something is already running on port 3000 solved in react JS
How to solve something is already running on port 3000 in react JS is shown
Content
0.16 -> hello everyone this video i'll be showing you
how to solve this problem something is already
4.8 -> running on port 3000 in react js the first thing
the reason we are getting this error is because
10.16 -> some other application or process is currently
using the port 3000 in your system okay so it
16.08 -> itself is giving an option like would you like
to run this app on some other port instead so if
21.2 -> you just go and click here y and it will take
it as an yes and this will just automatically
26.4 -> open this in some other port so my react project
has now started and if i just go to the browser
31.44 -> as you can see instead of 3000 it has like
automatically configured my port to be as 3001.
36.88 -> so this is one way of solving it another way is
like you can manually specify the port okay so
41.68 -> let's suppose say that you don't want to
run this particular project in 3001 so
44.72 -> you can just terminate it and what you'll
do is you need to go to this packet.json
49.76 -> and here to go to the start okay and just inside
this start just within this double quotes you
54.96 -> can just specify the port so it's going to
be set port equal to and let's suppose say
60.88 -> that we need to run this program in eight zero
eight zero port and we'll just put and over here
67.12 -> so this is a simple line of code uh set port
equal to your desired port number and just put and
72.24 -> save it and you can just rerun your program and
this time you won't be getting any other port
78.8 -> already in use because we have like manually set
our port that we want to run our react project
84.4 -> so it has started and if i just now go to the
browser it's running in localhost 8080 so these
89.52 -> are some of the ways you can solve this problem
and i hope you found this video useful i have also
92.96 -> done many other videos in c c plus plus java
python as well as 3d animation in blender
97.36 -> so do check other videos of my channel
subscribe and support me thanks for watching
Source: https://www.youtube.com/watch?v=lFvn2LskoXg