Created
June 7, 2022 02:04
-
-
Save sarojrana/30529bdbaccbc95f21ebb316a1568f1a to your computer and use it in GitHub Desktop.
Fix Vulnerable Dependencies of yarn.lock using NPM and Yarn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create package-lock.json without installing node dependencies | |
npm install --package-lock-only | |
# Run audit fix | |
npm audit fix | |
# Update yarn.lock | |
rm yarn.lock | |
yarn import | |
# Remove package-lock.json | |
rm package-lock.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment