sudo apt install npm nodejs #copy your api on your pi and cd into your project npm install node index.js #test if your application is working sudo npm install -g pm2 pm2 start insex.js