Home > Back-end >  Why does my 'npm install' give so many vulnerabilities?
Why does my 'npm install' give so many vulnerabilities?

Time:12-23

Everytime I do npm install after cloning a github project OR install packages on my local system for my practice projects, there are always around 20 vulnerabilities. But the guys in youtube tutorials always have 0 vulnerabilities.

I even reinstalled npm but it didn't change anything

CodePudding user response:

If you are following an old video, you are lickely installing old packages. Therefore it's pretty common to have vulnerabilities.

If you want the warnings to disappear, you can try to remove @version in your packages inside pakage.json and then run npm i again. Or, as bogdanoff says, run npm update instead.

But be careful, that packeges may behave differently from the video when updated.

  •  Tags:  
  • npm
  • Related