[英]What is the earliest version of electron that supports Node-API?
I have an electron@2.0.16 app that needs usb
, but running electron-rebuilder I get this error我有一个需要usb
的 electron@2.0.16 应用程序,但是运行 electron-rebuilder 我得到了这个错误
$ ./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根据https://github.com/timfish/node-api-version/blob/master/index.js#L43
the earliest is 3.0.0-beta.1
最早的是3.0.0-beta.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.