ErdemOzgen / DevSecOpsBuilder

Automatic DevSecOps builder
GNU General Public License v3.0
7 stars 2 forks source link

Nodejs version change to 16 #11

Closed ErdemOzgen closed 10 months ago

ErdemOzgen commented 11 months ago
echo "Setting up Node.js..."
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=16
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-get update
source ~/.bashrc
sudo apt install -y nodejs

Also take a look at this link
https://github.com/nodesource/distributions#supported-versions
ErdemOzgen commented 11 months ago

@ataseren