uh hello guys uh welcome to this video
so in this video I will show you how to
fix this uh error message uh which comes
while you run your NodeJS applications
cannot find module so in my case you can
see I'm developing this express
application and I'm trying to run this
application without installing this
module so as soon as I do this you will
see node index.js if I type this you
will see I will get this error module
not found because we haven't installed
this module and we are actually want to
use it so what you need to do right here
to actually rectify this error simply
install this module
npm express so it will actually install
this
module and then you can easily run your
application so just wait for the command
to finish and then it will create this
node modules folder and after that just
type this node
index.js and now if you see your
application will be running smoothly app
is running on port 5000 so in this way
guys you can actually fix this error
message and in the future let's suppose
you use any kind of other third party
module let's suppose I use a module
called as
malar and if I do this once again run
this you will see once again this error
comes
so when you try to import any sort of
third party module inside your NodeJS
application you need to first of all
install it to actually prevent this
error from occurring so every time
whenever you are using a third party
package simply install this and then run
your application and then in the future
that error will not come you will see we
have easily rectified this error by
installing the
modules so in this way you can do this
please hit that like button subscribe
the channel also comment if your problem
has been solved also check out my
website freemediattools.com which
contains thousands of tools