From b8e7388e2082b19d3507db52421f33d94eca979c Mon Sep 17 00:00:00 2001 From: fabrice1236 Date: Tue, 7 Jan 2025 19:02:46 +0100 Subject: [PATCH] Update Ghost installation script to install npm alongside Node.js --- install/ghost-install.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/install/ghost-install.sh b/install/ghost-install.sh index 7e2b85e1..4fe49581 100644 --- a/install/ghost-install.sh +++ b/install/ghost-install.sh @@ -44,16 +44,10 @@ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.co msg_ok "Set up Node.js Repository" # Install Node.js (includes npm) -msg_info "Installing Node.js" +msg_info "Installing Node.js and npm" $STD apt-get install -y nodejs -if ! command -v npm &> /dev/null; then - msg_info "Installing npm" - $STD apt-get install -y npm - msg_ok "Installed npm" -else - msg_ok "npm is already installed" -fi -msg_ok "Installed Node.js" +$STD apt-get install -y npm +msg_ok "Installed Node.js and npm" # Install Ghost CLI msg_info "Installing Ghost CLI"