Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node printer.node is not a valid win32 application

I have developed a node API for my angular application, My node application uses node-printer package for printing pdf files generated by node, when i tried to run my application using nodemon i am getting an error

node printer.node is not a valid win32 application

The same application is working on the other machine without any error. both the machines are of X64 bit architecture.

also i have also tried to install node js 32 bit then too i am getting same error.

like image 454
Rahul Lad Avatar asked Jun 04 '19 05:06

Rahul Lad


1 Answers

This worked for me, installing printer as such:

npm install printer --build-from-source
like image 90
BelgoCanadian Avatar answered Nov 10 '22 12:11

BelgoCanadian