简体   繁体   English

节点 escpos LIBUSB_ERROR_NOT_SUPPORTED

[英]node escpos LIBUSB_ERROR_NOT_SUPPORTED

I am trying to print with thermal printer, i am using node-escpos module to print it is working well with linux but in windows i'm getting error.node escpos LIBUSB_ERROR_NOT_SUPPORTED我正在尝试使用热敏打印机进行打印,我正在使用 node-escpos 模块进行打印,它在 linux 上运行良好,但在 Windows 中出现错误。node escpos LIBUSB_ERROR_NOT_SUPPORTED

Error: LIBUSB_ERROR_NOT_SUPPORTED
    at Device.usb.Device.open (C:\Users\Prashanth\Desktop\pos\node_modules\usb\usb.js:38:7)
    at USB.open (C:\Users\Prashanth\Desktop\pos\node_modules\escpos\adapter\usb.js:107:15)
    at Object.<anonymous> (C:\Users\Prashanth\Desktop\pos\node_modules\escpos\examples\barcode.js:20:8)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
    at startup (internal/bootstrap/node.js:283:19)

I have tried On Windows, Use Zadig to install the WinUSB driver for your USB device.but its not showing any thing as they mention zadig site我试过在 Windows 上,使用 Zadig 为您的 USB 设备安装 WinUSB 驱动程序。但它没有显示任何东西,因为他们提到了 zadig 站点

Used zadig to make this work.使用 zadig 来完成这项工作。 If this is still an open thread you can let me know.如果这仍然是一个开放线程,您可以告诉我。 But major drawback of this is on every Windows OS you have to install zadig and configure USB properties which is going to be real pain and not a scalable option at all.但这样做的主要缺点是在每个 Windows 操作系统上,您都必须安装 zadig 并配置 USB 属性,这将是非常痛苦的,而且根本不是可扩展的选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM