Node: ExperimentalWarning

Created on 30 Mar 2018  路  6Comments  路  Source: nodejs/node

  • Version: v9.10.0
  • Platform: Linux Host-001 4.14.6-300.fc27.x86_64 #1 SMP Thu Dec 14 15:31:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: http2

Even with --no-warnings or NODE_NO_WARNINGS=1, console still displays:
(node:17936) ExperimentalWarning: The http2 module is an experimental API.

http2

Most helpful comment

FWIW I cannot reproduce on 9.10.1 or master.

$ node -v
v9.10.1
$ node -e "require('http2');"
(node:85307) ExperimentalWarning: The http2 module is an experimental API.
$ node --no-warnings -e "require('http2');"
$

All 6 comments

FWIW I cannot reproduce on 9.10.1 or master.

$ node -v
v9.10.1
$ node -e "require('http2');"
(node:85307) ExperimentalWarning: The http2 module is an experimental API.
$ node --no-warnings -e "require('http2');"
$

I similarly cannot reproduce with flag or env var

-e argument produces no log
create a file containing just require('http2'); and run command.

Still no luck on macOS...

$ node -v
v9.10.1
$ cat foo.js 
require('http2');
$ node foo.js 
(node:94479) ExperimentalWarning: The http2 module is an experimental API.
$ node --no-warnings foo.js 
$ NODE_NO_WARNINGS=1 node foo.js
$

Sorry, you can close.
I used node foo.js --no-warnings instead of node --no-warnings foo.js

@aabfred hello, this is not the correct way to pass the arguments, as i checked when i pass the arguments before the filename, it works great for other arguments except for this one.

i reproduces the error in node 9.11.2

Was this page helpful?
0 / 5 - 0 ratings