diff options
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 067e8d96a0..01f713afd7 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -422,6 +422,16 @@ class ZCtx : public AsyncWrap { // just pull the ints out of the args and call the other Init static void Init(const FunctionCallbackInfo<Value>& args) { + // Refs: https://github.com/nodejs/node/issues/16649 + // Refs: https://github.com/nodejs/node/issues/14161 + if (args.Length() == 5) { + fprintf(stderr, + "WARNING: You are likely using a version of node-tar or npm that " + "is incompatible with this version of Node.js.\nPlease use " + "either the version of npm that is bundled with Node.js, or " + "a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) " + "that is compatible with Node.js 9 and above.\n"); + } CHECK(args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"); |