I have an electron@2.0.16 app that needs usb
, but running electron-rebuilder I get this error
$ ./node_modules/.bin/electron-rebuild
Error: Native module 'usb' requires Node-API but Electron v2.0.16 does not support Node-API
According to https://github.com/timfish/node-api-version/blob/master/index.js#L43
the earliest is 3.0.0-beta.1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.