pofider / node-wkhtmltopdf-installer

Installs wkhtmltopdf through NPM
MIT License
9 stars 9 forks source link

wkhtmltopdf.exe` binary doesn't seem to work correctly in microsoft/aspnetcore:2.0-nanoserver-sac2016 docker image. #10

Open arupbaroi opened 6 years ago

arupbaroi commented 6 years ago

When I run npm install , I am getting this error

wkhtmltopdf-installer@0.3.1 postinstall C:\app\node_modules\wkhtmltopdf-installer node lib/install.js

‼ Global command wkhtmltopdf doesn't seem to work. Downloading wkhtmltopdf localy to /vendor ... × Error: The C:\app\node_modules\wkhtmltopdf-installer\vendor\wkhtmltopdf.exe binary doesn't seem to work correctly at BinWrapper. (C:\app\node_modules\bin-wrapper\index.js:156:7) at ChildProcess. (C:\app\node_modules\bin-check\index.js:26:4) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) Try running vendor/wkhtmltopdf to get more detailed error output. npm notice created a lockfile as package-lock.json. You should commit this file.

Node version 8.9.0 I am running it with microsoft/aspnetcore:2.0-nanoserver-sac2016 docker image as base with node installed.