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 would like to try the package for my project but i have this error :
The command "node "C:\Users\Utilisateur\xxx\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file://C:\WINDOWS\TEMP\662381309-0143543001705327540\index.html"",""action"":""pdf"",""options"":{""path"":""report.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""format"":""a4"",""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: C:\Users\Utilisateur\forplan-pilot\public Output: ================ Error Output: ================ �[1m�[43m�[30m Puppeteer old Headless deprecation warning:�[0m�[33m In the near future headless: true will default to the new Headless mode for Chrome instead of the old Headless implementation. For more information, please see https://developer.chrome.com/articles/new-headless/. Consider opting in early by passing headless: "new" to puppeteer.launch() If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.�[0m Error: Could not find Chrome (ver. 119.0.6045.105). This can occur if either 1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome) or 2. your cache path is incorrectly configured (which is: C:\WINDOWS\system32\config\systemprofile.cache\puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:278:27) at ChromeLauncher.executablePath (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:209:25) at ChromeLauncher.computeLaunchArguments (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:103:37) at async ChromeLauncher.launch (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:69:28) at async callChrome (C:\Users\Utilisateur\forplan-pilot\vendor\spatie\browsershot\bin\browser.cjs:91:23)
Tried this :
Pdf::view('missions.details.reports.completed.index', $dataView)
->format('a4')
->save('report.pdf');
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I would like to try the package for my project but i have this error :
The command "node "C:\Users\Utilisateur\xxx\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file://C:\WINDOWS\TEMP\662381309-0143543001705327540\index.html"",""action"":""pdf"",""options"":{""path"":""report.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""format"":""a4"",""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: C:\Users\Utilisateur\forplan-pilot\public Output: ================ Error Output: ================ �[1m�[43m�[30m Puppeteer old Headless deprecation warning:�[0m�[33m In the near future
headless: true
will default to the new Headless mode for Chrome instead of the old Headless implementation. For more information, please see https://developer.chrome.com/articles/new-headless/. Consider opting in early by passingheadless: "new"
topuppeteer.launch()
If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.�[0m Error: Could not find Chrome (ver. 119.0.6045.105). This can occur if either 1. you did not perform an installation before running the script (e.g.npx puppeteer browsers install chrome
) or 2. your cache path is incorrectly configured (which is: C:\WINDOWS\system32\config\systemprofile.cache\puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:278:27) at ChromeLauncher.executablePath (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:209:25) at ChromeLauncher.computeLaunchArguments (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:103:37) at async ChromeLauncher.launch (C:\Users\Utilisateur\forplan-pilot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:69:28) at async callChrome (C:\Users\Utilisateur\forplan-pilot\vendor\spatie\browsershot\bin\browser.cjs:91:23)Tried this :
Pdf::view('missions.details.reports.completed.index', $dataView)
->format('a4')
->save('report.pdf');
I'm in local, windows with wampserver.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions