Marketplace
Frameworks

Node.js LTS

Node.js LTS, npm and pm2 for running production apps.

Deploy this app

About

Installs the current Node.js LTS release from the NodeSource repository along with pm2, a production process manager for keeping Node apps running and restarting them on crash or reboot.

Install script (runs as cloud-init user-data on first boot)

#!/bin/bash
set -e
apt-get update -y
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs build-essential
npm install -g pm2
pm2 startup systemd -u root --hp /root >/dev/null
echo "Node $(node -v), npm $(npm -v)" > /root/marketplace-install.log