I have Almalinux 9
AlmaLinux release 9.4 (Seafoam Ocelot)
I have installed the various other tools like npm, node and puppeteer.
I am using laravel spatie browsershot package for genereating pdf documents from my webapp. PDF not all generating and throwing the below error.
The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`/usr/bin/node /usr/bin/npm root -g` /usr/bin/node '/var/www/feedback/vendor/spatie/browsershot/src/../bin/browser.cjs'
This is error i am getting. I have properly setup everything on my server and facing this error.
[root@Apps feedback]# which node
/usr/bin/node
[root@Apps feedback]# node -v
v18.20.4
[root@Apps feedback]#
[root@Apps feedback]# which npm
/usr/local/bin/npm
[root@Apps feedback]# npm -v
10.8.3
[root@Apps feedback]#
[root@Apps feedback]# which puppeteer
/usr/local/bin/puppeteer
Kindly help me sort the issue.
Note: In my MAC everything works fine.