Using with Laravel Herd #850
-
Route: Route::get('/test/browsershot', function () {
\Spatie\Browsershot\Browsershot::url('https://spatie.be/docs/browsershot/v4/usage/introduction')
->setNodeBinary('/Users/galang/Library/Application Support/Herd/config/nvm/versions/node/v18.19.0/bin/node')
->setNpmBinary('/Users/galang/Library/Application Support/Herd/config/nvm/versions/node/v18.19.0/bin/npm') // Adjust if your npm path is different
->windowSize(1366, 768)
->setScreenshotType('jpeg', 80)
->save('screenshot.jpg');
}); Error: I think the problem is because the package can not parse space: /Users/galang/Library/Application Support/Herd/config/nvm/versions/node/v18.19.0/bin/ Is there any way to solve this? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
Biersteker
Jun 18, 2024
Replies: 1 comment 1 reply
-
use a backslash. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
galangaidilakbar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use a backslash.