I have this error whenever I install a package
found 14 vulnerabilities (1 low, 1 moderate, 12 high) run `npm audit fix` to fix them, or `npm audit` for details
So I have found out that some of my npm packages have a vulnerable version of a
dependency called tar
. So all I need to do now is update this package to a higher version >= 4.4.2.
I manually changed the versions of all the tar
dependencies in my package-lock.json
and have tried to run the following commands
npm i
npm audit fix
npm audit fix --force
but the package-lock.json
updates itself back to it's previous tar
dependencies. I even ran npm cache clean --force
and repeated the above command but the same result.
Is there a way I can specifically update every tar
dependency within my node_modules
from the command line?