NEET 07/05/2023 (Wed) 05:13 No.723147 del
>>723139
It's irrelevant to the problem, but why are you using zsh to call it? Just use /bin/sh or /bin/bash.
The cron entry should reference the path to scrapeProducts.js
eg
/usr/bin/node /home/linodeuser/scraper/scrapeProducts.js > /home/linodeuser/scraper/test.log 2>&1
Your require() lines inside scrapeProducts.js should be relative to scrapeProducts.js, eg require('../mymodules/foo.js')