mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Add npm installation check to Ghost installation script
This commit is contained in:
parent
a5cddebca2
commit
f8bca784b9
@ -46,6 +46,13 @@ 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"
|
||||||
$STD apt-get install -y nodejs
|
$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"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
# Install Ghost CLI
|
# Install Ghost CLI
|
||||||
|
Loading…
Reference in New Issue
Block a user