You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to download an image that is built using canvasHtml and I use browsershot to transform the graphic into an image. But I have the following error:
The command"PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/var/www/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"file:\/\/\/tmp\/1655821979-0276913001713185832\/index.html","action":"screenshot","options":{"type":"png","path":"\/var\/www\/storage\/app\/public\/documentTypesChart_cATsR8ov2y.png","args":["--no-sandbox"],"viewport":{"width":1211,"height":320},"displayHeaderFooter":false}}'" failed.
Exit Code: 127(Command not found)
Working directory: /var/www/public
Output:
================
Error Output:
================
sh: 1: npm: not found
sh: 1: node: not found
I would like to know if anyone has had an error similar to this. The error says that the node and npm were not found. But both are installed on the server. I believe the problem may be the includePath that was used in the library that points to:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to download an image that is built using canvasHtml and I use browsershot to transform the graphic into an image. But I have the following error:
I would like to know if anyone has had an error similar to this. The error says that the node and npm were not found. But both are installed on the server. I believe the problem may be the includePath that was used in the library that points to:
PATH=$PATH:/usr/local/bin:/opt/homebrew/bin
Beta Was this translation helpful? Give feedback.
All reactions