Update and rename build-nodejs.sh to install-nodejs.sh

This commit is contained in:
sebseb7
2020-10-12 23:10:21 +02:00
committed by GitHub
parent aa3720a1bd
commit 6c504d37cc
2 changed files with 4 additions and 11 deletions

View File

@@ -1,11 +0,0 @@
wget https://nodejs.org/dist/v12.18.4/node-v12.18.4.tar.gz
tar -xzf node-v12.18.4.tar.gz
rm node-v12.18.4.tar.gz
cd node-v12.18.4
./configure
make
sudo make install
cd ..
sudo npm i -g pm2
sudo pm2 startup

4
install-nodejs.sh Executable file
View File

@@ -0,0 +1,4 @@
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm i -g pm2
sudo pm2 startup