npm audit fix --force code example
Example 1: npm install run audit fix
rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install
Example 2: filter npm audit only high
npm audit | grep -B 1 -A 10 High
rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install
npm audit | grep -B 1 -A 10 High