mac-screen-capture-permissions icon indicating copy to clipboard operation
mac-screen-capture-permissions copied to clipboard

internal/process/warning.js:18 (node:30514) Warning: N-API is an experimental feature and could change at any time.

Open dyaskur opened this issue 3 years ago • 1 comments

the function is work perfectly but always give logs

internal/process/warning.js:18 (node:30514) Warning: N-API is an experimental feature and could change at any time.

How to solve it? I know I can ignore it but maybe any way to solve it except ignore or hide that warning.

Node: 16 electron: 2.0

dyaskur avatar May 18 '21 21:05 dyaskur

it's solved by change :

const permissionExists = macosVersion.isGreaterThanOrEqualTo('10.15');

to

const permissionExists = macosVersion() >= '10.15.0';

https://github.com/sindresorhus/macos-version/issues/12

dyaskur avatar May 18 '21 22:05 dyaskur