Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: N-API is an experimental feature and could change at any time

i'm very new to tensorflow.js. And while i ran my first program, i get this warning, "(node:4249) Warning: N-API is an experimental feature and could change at any time." should i be worried about it or just ignore it? i don't want it to cause problems for me in future. What is N-API anyway?

like image 427
lenikhilsingh Avatar asked Jul 21 '18 06:07

lenikhilsingh


2 Answers

You can ignore the warning for now. It's talking about a library that bridges C++ code to Node.js code. N-API is short for Node Addon API, and there is an awesome article on it here

like image 140
Michael Campbell Avatar answered Nov 16 '22 23:11

Michael Campbell


You can just hide the warning message using tag --no-warnings in your node launch:

node --no-warnings index.js
like image 2
Ignacio Ara Avatar answered Nov 16 '22 23:11

Ignacio Ara