npm ERR! code ERESOLVE could not resolve FIX Node JS React | Npm install error in visual studio code

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone in this video I will be showing you  how to solve error when running the command npm   install in react.js so here you can see that  I'm getting this code ERESOLVE could not resolve   so I'll be showing you four simple ways and  some commands to solve this issue so let's   get started so the first command is npm config  set Legacy peer deps true or you can just run   the command npm install Legacy peer deps so for  example in case if you are trying to install   npm i cors or any other npm package around  you need to run npm i that package name and   at the end you need to add this particular  thing so first let me go with this command   if you can't see let me just like zoom in a  bit so this is the commands so first let me   go with npm install Legacy peer deps I'll just  copy this and if I just go here and hit enter so this time here you can see right I am  having my node modules over here packages   are getting installed so here you can see  right so this command is working perfectly   so in case if you are using the second command  run the second command and after running the   second command you need to run npm install again  all right so this is the second command and third   command is going to be npm install -- force so the  reason why I have included that comment is because   here you can see right when I got that error when  running npm install here it says run this command   with hyphen -- force or -- legacy peer deps so  try running this npm install -- force the next   try that you can do is cleaning the cache that  is the npm cache clean -- force if you are still   getting this error try checking your folder path  in Visual Studio code so here you can see that   I am inside my first project and within the first  project I'm having my package.json and these files   so if you are like one folder behind and if you  try to run npm install that time also you may be   getting some errors so try correcting your folder  location and final thing is you need to just try   closing and opening are basically restarting  your Visual Studio code so I hope you would   have found this video useful do check the  playlist of my channel I've done a lot   of tutorials in node.js mongodb MySQL CRUD  operations subscribe me thanks for watching
Info
Channel: United Top Tech
Views: 4,562
Rating: undefined out of 5
Keywords: npm install error in visual studio cod, Npm install error, npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve, npm dependency error, npm insatll error in react js, npm install error in command prompt, npm install error in cmd, npm install error node js, npm install code eresolve eresolve could not resolve, npm install code eresolve unable to resolve dependency tree
Id: 95C8bg1tOT0
Channel Id: undefined
Length: 2min 24sec (144 seconds)
Published: Mon Jul 17 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.