[FIX] nodemon is not recognized as an external or internal command in Terminal [SOLVED]
Feb 5, 2025
Hi Join the official discord server to resolve doubts here:
https://discord.gg/cRnjhk6nzW
Visit my Online Free Media Tool Website
https://freemediatools.com/
Buy Premium Scripts and Apps Here:
https://procodestore.com/
Show More Show Less View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this short little video I will show
0:04
you how to fix this error which is
0:06
noemon is not recognized as an internal
0:09
or external command and uh I want to fix
0:12
this in this video I will show you nodeb
0:15
if you don't know it's a tool which
0:17
starts your applications automatically
0:19
whenever you make any kind of changes so
0:21
we have a simple Express app which is
0:24
running this is a simple Express server
0:26
I'm running this on Local Host 5000 and
0:29
uh
0:30
whenever I type this
0:32
nodemon index.js this is the expressjs
0:36
file that I'm running right here so I
0:38
type this command in the command line
0:40
and this error basically comes nodeb is
0:42
not recognized as an external or
0:44
internal command so the possibly the
0:47
reasons of this is not working that the
0:50
first reason obvious is if you haven't
0:52
installed nodeb globally so this is the
0:55
very first reason so now to fix this you
0:58
just need to install this
1:00
by globally installing it so this is
1:03
actually the command npmi dasg is a flag
1:07
for globally installing it inside your
1:09
system and node mod so just execute this
1:12
command this will possibly fix it 90% so
1:16
just install this as a global module so
1:19
that it is recognizable and possibly
1:22
restart your command like but also
1:25
without restarting it also works so if I
1:28
now type node one
1:31
index.js you will see the command will
1:34
work and uh you can see I can just write
1:37
a simple call back function just writing
1:40
a simple console
1:42
message app is
1:44
listening on Port 5000 so now what
1:48
happens if you see this message
1:50
appearing app is listening on Port 5,000
1:52
so now the application is working here
1:55
so if I navigate to Local Host 5,000
2:00
uh let's suppose I make a some kind of
2:02
change right here just put a get
2:09
request a simple response
2:16
here so if I refresh you will see
2:20
automatically it will restart the
2:21
application I don't need to so if I go
2:25
to the Home Route it will return hello
2:28
so if I again make a change right here
2:30
hello
2:32
world this is by node
2:35
modon so again you will see in the
2:37
background it will start this as I make
2:40
the change and you will see the
2:42
application will perfectly work so this
2:44
is the first Way by fixing node Bond if
2:47
for reason if if it doesn't work you
2:50
need to restart uh your command line
2:53
then it will work but uh 90% in the
2:56
cases you don't need to restart it just
2:58
execute the command and you can even
3:02
inside your script just make a simple
3:04
Dev script as well and uh this is
3:08
another way you can add a Dev script
3:11
right here in the script section in your
3:13
package.json just add a Dev script if
3:16
you don't want to write every time this
3:18
node more index or JS so you can just
3:20
add the script so it will save you a lot
3:24
of time you don't need to write node
3:25
more index.js you just need to add this
3:28
script right here you can call this
3:30
anything I'm just calling it Dev and
3:32
node more index.js so now if you want to
3:36
start this you just need to write npm
3:38
run Dev so we just need to run the
3:41
script right here npm run
3:44
Dev so now what happens it executes the
3:47
same script so you will see
3:49
that in if you execute this it inter
3:53
turns run this and that's all this is
3:56
another way by which you can run this so
3:59
in this way you can fix that problem by
4:02
globally installing this it's a very
4:04
important just simple fix you install
4:07
this as globally and then you can
4:09
easily run this inside it can be used to
4:14
run nodejs react view any front-end
4:17
application that you're building so it's
4:18
a very important tool it basically saves
4:21
you a lot of time you don't need to
4:22
restart your application every time if
4:25
you make any sort of
4:27
change so this is the fix
4:30
so thank you very much guys for watching
4:32
this video and also check out my website
4:34
as well freem mediat tools.com which
4:37
contains thousands of tools regarding
4:39
audio video and MH and I will be seeing
4:42
you guys in the next video
