-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to install and run this module? #77
Comments
I see you are using webpack. do you want to implement for reactjs ?you cannot use the module on the client side. in this case webpack for react. |
Hi, i have a similar issue here, im using Electron, and i trying to implement this project in main process (all with nodejs) I try with this simple example:
|
** On Windows require installed Zadig for bridge your printer & the library If you use usb as an adapter :
Otherwise you will get USB(vid, pid)const escpos = require('escpos');
escpos.USB = require('escpos-usb');
const usbDevice = new escpos.USB(0x01, 0xff); vid(Vendor Id) and pid (Product Id) can be checked with the |
i have installed this module using
npm i @node-escpos/core
andnpm i @node-escpos/usb-adapter
and try using sample script
but when i execute this script, it's trow an error :
The text was updated successfully, but these errors were encountered: