electorn-forge打包usb报错
type
status
date
slug
summary
tags
category
icon
password
Blocking
Blocked by
top
URL
Sub-item
Parent item
因业务需在应用内监听 USB 设备插拔事件,项目引入了
usb 模块。该依赖在 Windows 平台打包正常,但在麒麟操作系统上触发 Electron 打包失败,报错信息如下:问题原因:
GitHub - node-usb/node-usb: Improved USB library for Node.js
Improved USB library for Node.js. Contribute to node-usb/node-usb development by creating an account on GitHub.
解决办法:
在forge配置忽略
