
node : The term 'node' is not recognized as the name of a cmdlet, function, script file SOLVED
node : The term 'node' is not recognized as the name of a cmdlet, function, script file SOLVED
How to solve node : The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again is shown
Content
0.4 -> hi everyone in this video i'll be showing you how
to solve the error the term node is not recognized
5.68 -> as the name of a cmdlet function script file
or operable program so i'm getting this error
10.8 -> when i try to run my node code over here so
to solve this the first thing what you will
14.96 -> do is you need to go to the folder where you have
installed your nodejs so by default the location
19.28 -> is c program files and here you will be having a
folder named as node.js all right so this is the
25.68 -> default location and in case if you aren't able
to find this location what you are doing is you
30.4 -> need to just go to start and search for node.js
and you just click on this open file location
39.12 -> and you will be having this node.js icon
over here just right click it and again
44.56 -> press open file location this will be directing
to the folder where node.js has been installed
49.28 -> so once you reach this folder just click on this
path above and you're just going to copy this so
55.52 -> just click ctrl c to copy this path and next
thing just go to search and type environment
62 -> variables you will be getting there edit the
system environment variables just click on open
67.52 -> and in this dialog box just click on environmental
variables and here you are going to path you can
72.8 -> go in for user variables or system variables
it's going to be your choice i will go for
77.44 -> system variables just click on this path
over here and click edit and just give new
84.24 -> and paste our path so it C program files node.js
by default and after doing that just click ok
92.8 -> everywhere and now if i just go to my visual
studio code you have to close your visual
97.2 -> studio code alright just restart it again so i
am here after restarting my visual studio code
102.88 -> and if i just now give node my file.js and this
time i will be getting connected and db created
110.48 -> this is because of the console statements
present over here and i hope you have found
114.48 -> this video useful mine is a programming channel
i've done many videos in node.js react js c c
118.64 -> plus plus java python so do check other videos
of my channel subscribe me thanks for watching
Source: https://www.youtube.com/watch?v=DL6QY8X423Q