#!/bin/bash set -e echo "===== Update system =====" apt update -y apt install -y curl ca-certificates gnupg echo "===== Install Node.js 22 =====" curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt install -y nodejs echo "===== Enable Corepack =====" corepack enable echo "===== Install pnpm =====" corepack prepare pnpm@latest --activate echo "===== Install PM2 =====" npm install -g pm2 echo "===== Install build tools =====" apt install -y build-essential echo "===== Version check =====" node -v npm -v pnpm -v pm2 -v echo "===== Install complete ====="