From 0323361d6e47649acdc161fe98c01823948407a7 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 26 Oct 2023 19:42:13 +0200 Subject: [PATCH 1/2] Nodesource deprication warning upon script use --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d116442..a086761 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,10 @@ We aim to introduce new developers to Blueprint with easy to understand guides, **Installation:** 1. Blueprint doesn't mix well with other modifications, so if you already have any, [perform a panel update](https://pterodactyl.io/panel/1.0/updating.html) before moving on with this guide. 2. Navigate to your Pterodactyl folder. (most likely `/var/www/pterodactyl`) -3. Install NodeJS, NPM and Yarn using the following script. This assumes you are running Pterodactyl on Ubuntu or Debian-based systems. +3. Install NodeJS, NPM and Yarn using the following commands. This assumes you are running Pterodactyl on Ubuntu or Debian-based systems. ```sh -curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list +apt-get update apt-get install -y nodejs npm i -g yarn yarn From 11363cabe0d907f7b80805f311ba0a45b6289895 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 26 Oct 2023 19:45:19 +0200 Subject: [PATCH 2/2] Added certificates as nodesource requires them :P --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a086761..6fdc608 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,9 @@ We aim to introduce new developers to Blueprint with easy to understand guides, 2. Navigate to your Pterodactyl folder. (most likely `/var/www/pterodactyl`) 3. Install NodeJS, NPM and Yarn using the following commands. This assumes you are running Pterodactyl on Ubuntu or Debian-based systems. ```sh +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 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list apt-get update apt-get install -y nodejs