Sitemap
Medium Logo

bash script node.js

#!/bin/bash -xe

yum install git -y

yum install nodejs -y

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

git clone https://github.com/johnpapa/node-hello.git

cd node-hello/

npm install

npm install -g pm2

pm2 start index.js

node index.js