【发布时间】:2019-08-30 11:34:36
【问题描述】:
我正在尝试使用热敏打印机打印,我正在使用 node-escpos 模块进行打印,它在 linux 上运行良好,但在 Windows 中我得到了 error.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)
我已经尝试在 Windows 上,使用 Zadig 为您的 USB 设备安装 WinUSB 驱动程序。但它没有显示任何内容,因为他们提到了 zadig 站点
【问题讨论】:
-
@KiranMathewMohan 我见过那个,但是当我尝试安装它时,它没有显示任何要安装的东西,就像他们所提到的那样
标签: javascript node.js express nodes pos