Prepare for Update to Node v20

+ Some fixes for npm audit notices
node-20
Moe 2023-10-05 10:05:31 -07:00
parent 830d702241
commit 40798fc68b
6 changed files with 2744 additions and 5353 deletions

View File

@ -10,7 +10,7 @@ echo "Shinobi - Do you want to Install Node.js?"
echo "(y)es or (N)o"
read -r nodejsinstall
if [ "$nodejsinstall" = "y" ]; then
curl -o node-installer.pkg https://nodejs.org/dist/v16.15.0/node-v16.15.0.pkg
curl -o node-installer.pkg https://nodejs.org/dist/v20.7.0/node-v20.7.0.pkg
sudo installer -pkg node-installer.pkg -target /
rm node-installer.pkg
sudo ln -s /usr/local/bin/node /usr/bin/nodejs

View File

@ -1,2 +1,2 @@
sudo yum install --nogpgcheck https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
sudo yum install --nogpgcheck https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
sudo yum install --nogpgcheck nodejs -y

View File

@ -2,7 +2,7 @@ sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=16
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y

View File

@ -34,7 +34,7 @@ echo "(y)es or (N)o"
NODEJSINSTALL=0
read -r nodejsinstall
if [ "$nodejsinstall" = "y" ] || [ "$nodejsinstall" = "Y" ]; then
sudo zypper install -y nodejs16
sudo zypper install -y nodejs20
NODEJSINSTALL=1
fi
echo "============="

8081
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
"homepage": "https://gitlab.com/Shinobi-Systems/Shinobi#readme",
"dependencies": {
"@aws-sdk/client-s3": "^3.226.0",
"async": "^3.2.2",
"async": "^3.2.4",
"backblaze-b2": "^1.7.0",
"body-parser": "^1.19.0",
"bson": "^4.6.1",
@ -33,7 +33,7 @@
"googleapis": "^100.0.0",
"http-proxy": "^1.18.1",
"jsonfile": "^3.0.1",
"knex": "^0.21.21",
"knex": "^2.5.1",
"ldapauth-fork": "^5.0.2",
"marked": "^4.3.0",
"moment": "^2.29.4",
@ -45,7 +45,7 @@
"node-fetch": "^2.6.7",
"node-onvif-events": "^2.0.5",
"node-ssh": "^12.0.4",
"node-telegram-bot-api": "^0.61.0",
"node-telegram-bot-api": "^0.63.0",
"nodemailer": "^6.7.1",
"pam-diff": "^1.1.0",
"path": "^0.12.7",
@ -55,7 +55,7 @@
"sat": "^0.7.1",
"shinobi-node-moving-things-tracker": "^0.9.1",
"shinobi-onvif": "0.1.9",
"shinobi-sound-detection": "^0.1.13",
"shinobi-sound-detection": "^0.1.14",
"shinobi-zwave": "^1.0.11",
"smtp-server": "^3.9.0",
"socket.io": "^4.4.1",