Last active
October 6, 2021 23:59
-
-
Save diegofcornejo/24591d1d9be039e4cecb193aa5d3fdee to your computer and use it in GitHub Desktop.
Install Node JS & forever on AWS EC2 aarch64 - A1 & T4G Instances
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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