Update Ghost installation script to install npm alongside Node.js

This commit is contained in:
fabrice1236 2025-01-07 19:02:46 +01:00
parent f8bca784b9
commit b8e7388e20

View File

@ -44,16 +44,10 @@ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.co
msg_ok "Set up Node.js Repository" msg_ok "Set up Node.js Repository"
# Install Node.js (includes npm) # Install Node.js (includes npm)
msg_info "Installing Node.js" msg_info "Installing Node.js and npm"
$STD apt-get install -y nodejs $STD apt-get install -y nodejs
if ! command -v npm &> /dev/null; then $STD apt-get install -y npm
msg_info "Installing npm" msg_ok "Installed Node.js and npm"
$STD apt-get install -y npm
msg_ok "Installed npm"
else
msg_ok "npm is already installed"
fi
msg_ok "Installed Node.js"
# Install Ghost CLI # Install Ghost CLI
msg_info "Installing Ghost CLI" msg_info "Installing Ghost CLI"