Use node LTS on latest raspian (buster)
This commit is contained in:
parent
d06ae6e563
commit
f201e50536
|
@ -7,7 +7,7 @@ sudo apt install git ufw nginx jq -y
|
||||||
echo "Installing node.js dependencies.."
|
echo "Installing node.js dependencies.."
|
||||||
sudo apt install nodejs npm -y
|
sudo apt install nodejs npm -y
|
||||||
sudo npm install -g n
|
sudo npm install -g n
|
||||||
sudo n latest
|
sudo n lts
|
||||||
sudo npm install -g npm@latest
|
sudo npm install -g npm@latest
|
||||||
sudo npm install -g pm2 node-gyp node-pre-gyp
|
sudo npm install -g pm2 node-gyp node-pre-gyp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue