-
Notifications
You must be signed in to change notification settings - Fork 27
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
npm install/build fail on windows #13
Comments
Firstly, I believe that you need to be using the patched pdfium, as in:
This works for me. However, doing an electron-rebuild or:
Seems to build everything fine but finally fails with the following:
|
I'm still having the same error, any updates for this? |
Nothing.. |
npm install https://github.com/gaboelnuevo/node-pdfium/tarball/patch-node-version --save But when i require the package (
node : 6.10.3 Any ideas why i can't requite that package since the install is fine ?! |
Okay so I have the same problem as @ThomasLamiraud . I was able to get some errors out of node-gyp. You can only see these if you enable them in the output of node-gyp (npm install doesn't do this). Navigate to pdfium within the node_modules directory then execute You should get it working with this branch ( PR in on @gaboelnuevo branch)
It is the
I thought I would add that I while I was able to get this built, printing using node-printer and the EMF file never worked. |
My solution for all this wasted time on Windows! var absolutePath = path.resolve(file); var pfad = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"; child_process(pfad, parameters, function(err, data) { |
alex your solution has nothing to do with the issue. AFAIS this is still relevant as I get the same error, no matter which patched repo i try to install from. any idea? |
Hello,
I try to use this module in an electron app with the node-printer module. The node printer module works properly but I have an issue with the install of the node-pdfium module on Windows.
I tried to install the module with
npm install --save pdfium
or
npm install --save pdfium --msvs_version=2015
and
npm install --save pdfium --msvs_version=2015 --runtime=electron --target=1.4.5 --arch=x64
But each time, I got the following error :
My node version is 6.9.1 and my npm version is 3.10.8
Any idea why the build fail ?
The text was updated successfully, but these errors were encountered: