sam run npm install to install node modules chmod +x /path/to/yourfile.sh chmod your file to execute then do ./bot.sh