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