Skip to content

Instantly share code, notes, and snippets.

@diegofcornejo
Last active October 6, 2021 23:59
Show Gist options
  • Save diegofcornejo/24591d1d9be039e4cecb193aa5d3fdee to your computer and use it in GitHub Desktop.
Save diegofcornejo/24591d1d9be039e4cecb193aa5d3fdee to your computer and use it in GitHub Desktop.
Install Node JS & forever on AWS EC2 aarch64 - A1 & T4G Instances
#!/bin/bash
VERSION=6.17.1
curl -O https://nodejs.org/dist/v$VERSION/node-v$VERSION-linux-arm64.tar.xz
tar -xvf node-v$VERSION-linux-arm64.tar.xz
cd node-v$VERSION-linux-arm64
sudo cp -R * /usr/local/
sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/lib/node /usr/lib/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
npm install -g forever
sudo ln -s /usr/local/bin/forever /usr/bin/forever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment