You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 17, 2019. It is now read-only.
Thanks
It works as expected "node --no-warnings index.js"
As you say there might be other warnings I would like to be aware of.
Maybe a method called in the N-API Init function could suppress the
experimental feature message or even change a boolean value... napi_ignore_experimantal_feature_msg defaulting to false
It is early days yet. I wrote my first N-API code yesterday and it seems
to be what I want to solve my problem. Getting sensible synchronisation
between a database and a Node application server. I gave up on examining
how Mongodb did it; opensource code can be exceedingly complex.
I would also like to suppress this warning. It served it's purpose, I understand that I am using an experimental feature, but I am tired of the clutter. Thanks.
@webern my guess is that you are using 8.x, right?
In 6.x it is still doc experimental but there is no longer a warning
In 10.x and higher -> stable no warning
In 8.x -> just waiting for next semverMinor (see nodejs/node#21593). I've already backported the change to remove the warning, just waiting for the release :)
On Jul 16, 2018, 12:42 PM -0700, Michael Dawson ***@***.***>, wrote:
@webern my guess is that you are using 8.x, right?
In 6.x it is still doc experimental but there is no longer a warning
In 10.x -> stable no warning
In 8.x -> just waiting for next semverMinor (see nodejs/node#21593). I've already backported the change to remove the warning, just waiting for the release :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
In case it was not clear, if you are on the lts/carbon8.x branch, you can stay on that major version just upgrade the minor version to something >= 8.12 to resolve this warning.
$(command -v node) finds the executable's full path (do not use which), passes it to exec, since exec can use environment variables (shebang can not), and executes it with all params
env can only take ONE parameter, so this second line is needed.
$0 is the script (first param), $@ all the other manually passed ones from the command line
@ackvf can you open a new issue with the information on how to recreate? Please include node --version, platform and the command line you used along with what is necessary to recreate. There should be no warning.
Activity
mhdawson commentedon Dec 1, 2017
Can you use
--no-warnings? That should suppress the warning along with all others.I guess you were hoping to be able to disable it for users of your module ?
billc3012 commentedon Dec 1, 2017
webern commentedon Jul 13, 2018
I would also like to suppress this warning. It served it's purpose, I understand that I am using an experimental feature, but I am tired of the clutter. Thanks.
mhdawson commentedon Jul 16, 2018
@webern my guess is that you are using 8.x, right?
In 6.x it is still doc experimental but there is no longer a warning
In 10.x and higher -> stable no warning
In 8.x -> just waiting for next semverMinor (see nodejs/node#21593). I've already backported the change to remove the warning, just waiting for the release :)
webern commentedon Jul 16, 2018
mhdawson commentedon Jul 16, 2018
Since 9.x is no longer supported we'd not be updating it there. I meant 8.x with 8.12 being the semVer minor release that we are waiting on.
webern commentedon Aug 12, 2018
Thank you for this info, I resolved the issue by updating my project to 10.7. This issue can be closed.
mhdawson commentedon Aug 22, 2018
Closing
jukefr commentedon Nov 5, 2018
Is there any way to make this an environment variable of some sorts ?
I am currently writing a unix executable along these lines
So passing the argument in this case is not an option.
EDIT: nodejs/node#10842 feature was already requested and merged apparently
ancms2600 commentedon Dec 6, 2018
In case it was not clear, if you are on the
lts/carbon8.xbranch, you can stay on that major version just upgrade the minor version to something>= 8.12to resolve this warning.BananaAcid commentedon Feb 10, 2019
@jukefr another shebang line might help:
I coded this here,to test this case.
$(command -v node)finds the executable's full path (do not usewhich), passes it toexec, sinceexeccan use environment variables (shebang can not), and executes it with all paramsenvcan only take ONE parameter, so this second line is needed.$0is the script (first param),$@all the other manually passed ones from the command lineackvf commentedon Feb 14, 2019
I am on node 10.10 and I still get the ExperimentalWarning.
mhdawson commentedon Feb 16, 2019
@ackvf can you open a new issue with the information on how to recreate? Please include node --version, platform and the command line you used along with what is necessary to recreate. There should be no warning.