ec2 yum nodejs
snippet in javascript

ec2 yum nodejs

user766

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm install node