I installed this module with this command "npm install printer --build-from-source".
On local machine node-printer works fine. but while deploying to server it gives invalid ELF header error.
Details: Error: /app/node_modules/printer/lib/node_printer.node: invalid ELF header at Object.Module._extensions..node (internal/modules/cjs/loader.js:683:18)
Note: local machine is windows while server OS is Linux.
I installed this module with this command "npm install printer --build-from-source". On local machine node-printer works fine. but while deploying to server it gives invalid ELF header error.
Details: Error: /app/node_modules/printer/lib/node_printer.node: invalid ELF header at Object.Module._extensions..node (internal/modules/cjs/loader.js:683:18)
Note: local machine is windows while server OS is Linux.
Kindly guide me to how to solve the issue.