简体   繁体   中英

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

$ ./node_modules/.bin/electron-rebuild

Error: Native module 'usb' requires Node-API but Electron v2.0.16 does not support Node-API

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.

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