From 97e54a59310d40f0b26f146e10f5aa3a16c74e2e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 28 Apr 2022 18:16:33 -0500 Subject: [PATCH] npm is a mess. --- setup-development/linux/upgrade-linux.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup-development/linux/upgrade-linux.sh b/setup-development/linux/upgrade-linux.sh index 32093ea..be0be59 100644 --- a/setup-development/linux/upgrade-linux.sh +++ b/setup-development/linux/upgrade-linux.sh @@ -76,7 +76,7 @@ electronversion="" case `code --version` in #* Each version of VSCode has a corresponding Electron version and Node version #* These are used when - 1.66.*) electronversion="17.2.0"; nodeversion="16.13.0";; + 1.66.*) electronversion="17.2.0"; nodeversion="16.14.2";; *) ;; esac @@ -90,6 +90,9 @@ dryrun npm install electron-rebuild yo generator-code # use npm to acquire dependencies for Mind-Reader dryrun npm install +# automatically update vulnerable packages, if possible +dryrun npm audit fix + # Use electron-rebuild to rebuild electron if [ "$electronversion" != "" ]; then dryrun electron-rebuild --version $electronversion