nodesource added their installation scripts back
This commit is contained in:
parent
8887bcd941
commit
7e010cdbca
|
@ -258,12 +258,7 @@ if ! which npm >/dev/null; then
|
||||||
sudo apt remove -y nodejs
|
sudo apt remove -y nodejs
|
||||||
sudo rm -rf /usr/lib/node_modules
|
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
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs
|
||||||
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
|
|
||||||
sudo npm install -g npm
|
sudo npm install -g npm
|
||||||
|
|
||||||
cd /meshcentral
|
cd /meshcentral
|
||||||
|
|
Loading…
Reference in New Issue