Install PM2 on Cloudways
Install PM2 on Cloudways
to install PM2 on Cloudways you can run the below script, but note that you will need to use the master account
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash &&
\. "$HOME/.nvm/nvm.sh" &&
nvm install 22 &&
node -v &&
npm -v &&
npm i -g pnpm pm2