-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
princexml wasn't found in path #52
Comments
I am on NixOS |
Well, it means that "prince" is not in $PATH and that node-prince was also unable to determine that NixOS is a Linux environment. So, either you have to install PrinceXML manually into the system before using node-prince or we have to figure out what check is needed to recognize NixOS in https://github.com/rse/node-prince/blob/master/prince-npm.js |
I have installed PrinceXML manually on my system but I was having issues doing the same on the deployed instance of my application (which also runs it on NixOS AFAIK).
How can I help with that? I'm willing to do some debugging if you wish. |
@rse any comment? |
I've tried it out: I've created a package.json with a dependency to "prince" and then have run...
...(with NPM 10.2.3) and the "install" script was correctly executed inside the "prince" package (it downloaded PrinceXML and unpacked it). So, perhaps it is an issue with your particular/older NPM version? |
I'm getting a new error after updating
Note that I do find the binary installed by the lib at the relative path: |
When I run my application that uses
node-prince
as a dependency, it errors out sayingError: Prince#execute: cannot resolve binary "prince" to a filesystem path
Full error:
The text was updated successfully, but these errors were encountered: