-
Got node working with this setup
But encountered this exception. "The command "D:\nodejs\node.exe "D:\Systems\New\System\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file://C:\Users\WINDOW~1\AppData\Local\Temp\525855704-0958181001713400739\index.html"",""action"":""pdf"",""options"":{""path"":""pr.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""newHeadless"":true,""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: D:\Systems\New\System\public Output: ================ Error Output: ================ [Error: ENOENT: no such file or directory, mkdtemp 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX'] { errno: -4058, code: 'ENOENT', syscall: 'mkdtemp', path: 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX' } " the code works fine in artisan tinker:
But in controller I'm getting the exception above. using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
did you find any solution for this ? im having the same issue , no luck so far |
Beta Was this translation helpful? Give feedback.
Turns out it doesn't work with
npm run dev
. Try creating a dev environment with xampp or wampp (depends on you).