I just helped a guy less than a week ago with the same issue, but reversed (worked on production, but failed on dev). It was the underlying package that couldn't find node. Let me see if I can find the thread
Difference between dev and production
Hi folks...
So I have a slight issue which despite me spending god-knows-how-many hours on, I cannot work out. And before I declare myself insane, I thought I would ask here!
I've built my own blog over at https://ashbo.dev however here's the issue. Locally, on my Macbook Pro, everything works. When I view a blog post, the Spatie/Laravel-Markdown package appears to work just fine. When I push to master and use dep deploy (With Laravel Recipe) on the server, it's not rendering the code blocks as it should be.
They render perfectly (They're beautiful) on my MBP, however on production, the code isn't formatting.
Here's a tweet with photos of dev vs prod: https://twitter.com/AshboDev/status/1479852504221425665
I've tried my own server (colocation) and a Digital Ocean droplet (Through forge). I've met the requirements of the package, however no matter what I do, it's like something is afoot. The servers are all running PHP8.1, with all the recommended packages from Laravel docs, as well as package requirements for the laravel-markdown package.
I use Cloudflare however to test if it's CF related, I moved it back to ionos, with no middle man filtering/ssl/cache etc, and same result.
I want to know why this is happening, and how on earth to overcome it! Any suggestions will be welcomed, even if they're ID10T erorrs!
Thanks folks! Ash
Please or to participate in this conversation.