Closed vincemammoliti closed 2 years ago
This looks like a permission issue. Generally, the library works on Windows. You can try to re-install the dependency manually:
npm cache clean --force
npm install puppeteer --force
Are other node modules working on your system? Especially such that require file system access? If not, you might have to setup permissions properly first.
Thanks for your response. I've just resolved it now and the issue was related to Node and IIS config/directory permissions.
Despite setting up the correct permissions to run my Laravel application from C:\Users{username}{subfolders}\my-app\ , when running node.js as the user identity associated with the IIS application pool it caused a permissions error on the C:\Users{username}\ directory.
After moving my application code from my Documents directory to C:\inetpub\apps\my-app, and setting up the same IIS user permissions, it is now working.
For reference, this answer on a different problem helped me get to that solution: https://stackoverflow.com/a/68937635
I am trying to get this package up and running with a simple example but am unable to get past an error. My development environment: Windows 11, Node v18.7.0, npm v8.15.0, Laravel 9.
The error is from $converter->convert():
This is the code I'm using in a Laravel controller, similar to the example provided in the readme: