The term 'npx' is not recognized as the name of a cmdlet, function SOLVED in React JS and Node JS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone in this video I'll be showing  you how to solve the error the term npx is   not recognized as the name of a cmdlet function  or operable program so I'm getting this error   when I try to run the command npx create react  app so now let's get started with the solution   so the first thing what you need to do is  you need to have npm and node installed on   your system so for this just go to Google  and type node you'll be getting the first   link over here so you need to have node.js  installed so you can click on download for   Windows and the download process is so simple  it's like a straightforward installation   and npm also comes with node so you just need  to install this particular thing and npm also   comes with node pre-installed so you don't  want to worry about that now so once you have   successfully installed node.js what you want  to do is you need to find the PATH where you   have installed node.js on your system so for  doing that you need to go to search and just   type node.js and here you will be having node.js  and you need to just click on open file location and in this again you will be having  node.js so right click it again and again click on open file location so this  time it will directly take you to the folder   where node.js has been installed so by default  it's installed in local disk C program files   and node.js so I'll just copy this first I'm  copying this and you need to go to environment   variables yeah you'll be getting the edit the  system environment variables just click on open and again environment variables and  under system variables click on path   and you need to click on edit and you need  to just click on new and paste it alright   it's C program files node.js for me so I'll  just click on OK everywhere yeah everywhere   so now we need to also add the npm path so for  that what you will do is just go to this PC   then again you need to go to local disk C  and here you'll be having the users folder   and in the users folder you need to go to  your system name okay this is my system name   and inside the system name you'll be having this  app data folder this is a hidden folder by default   so in order to view this folder you need to click  on view and you'll be having this hidden items so   if this is unchecked you need to check it okay  so if I uncheck that I won't be able to see the   app data folder so I will check it so now I'm  able to see the app data folder which has like   a dull icon that means it's a hidden folder so  just click on app data and inside that roaming   and inside roaming if I scroll down here I'll  be having npm okay so we need to also copy   this particular command so here we are having npx  alright so you have to just copy this command also   just copy it and I'm going to go to the same  environment variables so same environment   variables and I'll go to environmental variables  under system variables path edit new and paste it   so these are the two paths guys so be careful when  copying them both I'll just click OK everywhere   so once you're done adding the paths you need  to close and restart your Visual Studio code so   just close it and I'll just reopen Visual Studio  code now so I was just restarted my visual studio   code and if I just paste the npx create react app  command and if I just now hit enter so now you can   see right I'm not getting any errors and creating  a new react app in my folder so it's working   absolutely fine so I hope you would have solved  your error and mine is a programming Channel also   so do check the playlist of my channel I've done  many videos in C C++ Java python node.js react.js   mongodb MySQL CRUD operations with node.js and  spring boot so subscribe me thanks for watching
Info
Channel: United Top Tech
Views: 25,648
Rating: undefined out of 5
Keywords: The term 'npx' is not recognized as the name of a cmdlet, Npx is not recognized, Npx error in vscode, Error when running create react app, Npx error solved
Id: n6BzliZA_R0
Channel Id: undefined
Length: 4min 7sec (247 seconds)
Published: Sat Jun 03 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.