Fatal error: Uncaught Symfony\Component\Process\Exception\ProcessFailedException: The command "PATH=$PATH:/usr/bin NODE_PATH=`npm root -g` node '/srv/www/bot.fixturebot.com/public_html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/tmp\/574111711-0108656001745710839\/index.html","action":"screenshot","options":{"type":"png","path":"\/srv\/www\/bot.fixturebot.com\/public_html\/@cache\/banners\/epl-fixtures\/matches-2025-04-24--2025-04-29.png","args":["--no-sandbox"],"viewport":{"width":680,"height":400,"deviceScaleFactor":2},"displayHeaderFooter":false,"fullPage":true,"newHeadless":true}}'" failed.
Exit Code: 1(General error)
Working directory: /srv/www/bot.fixturebot.com/public_html
Output:
================
Error Output:
================
sh: 1: npm: not found
ProtocolError: Protocol error (Page.captureScreenshot): Unable to capture screenshot
at /srv/www/bot.fixturebot.com/public_html/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:298:24
at new Promise (<anonymous>)
at CDPSession.send (/srv/www/bot.fixturebot.com/public_html/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:294:16)
at Page._Page_screenshotTask (/srv/www/bot.fixturebot.com/public_html/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2668:74)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
originalMessage: 'Unable to capture screenshot'
}
in /srv/www/bot.fixturebot.com/public_html/vendor/spatie/browsershot/src/Browsershot.php:953
Stack trace:
#0 /srv/www/bot.fixturebot.com/public_html/vendor/spatie/browsershot/src/Browsershot.php(577): Spatie\Browsershot\Browsershot->callBrowser()
#1 /srv/www/bot.fixturebot.com/public_html/src/utils/utils.php(445): Spatie\Browsershot\Browsershot->save()
#2 /srv/www/bot.fixturebot.com/public_html/src/scripts/banner.php(72): utils->renderTemplate()
#3 /srv/www/bot.fixturebot.com/public_html/bot.php(61): require_once('...')
#4 {main}
thrown in /srv/www/bot.fixturebot.com/public_html/vendor/spatie/browsershot/src/Browsershot.php on line 953