-
Notifications
You must be signed in to change notification settings - Fork 144
Description
I am using [email protected]. With Node.js v6.11.3, 8.5.0, and 8.6.0, I did not get any warnings when running any Grunt tasks. After upgrading to 8.8.0 and now 8.8.1 (I skipped 8.7.0) I am getting warnings that look like this whenever I run a Grunt task:
(node:19412) ExperimentalWarning: The http2 module is an experimental API.
I assume 19412 is the process ID.
This warning goes away after uninstalling grunt-contrib-connect. It happens regardless of whether I configure a target to use the http2 protocol or not.
It looks like this is because of this change in node v8.8.0: nodejs/node#15685
Essentially it enables the Node.js core http2 module which now overrides the userland package. Importing the userland package now requires setting the environment variable NODE_NO_HTTP2=1.
It seems like a viable solution here would be to check whether the user is running Node 8.8.0+ and use the native http2 module if so.