From 7e010cdbca23f9c6e65cbdb86073f8a59a3fc9bd Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 13 Mar 2024 01:06:07 +0000 Subject: [PATCH] nodesource added their installation scripts back --- update.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/update.sh b/update.sh index b881b5a2..fd67c37c 100644 --- a/update.sh +++ b/update.sh @@ -258,12 +258,7 @@ if ! which npm >/dev/null; then sudo apt remove -y nodejs sudo rm -rf /usr/lib/node_modules - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg - 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 update - sudo apt install -y gcc g++ make - sudo apt install -y nodejs + curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs sudo npm install -g npm cd /meshcentral