discord / erlpack

High Performance Erlang Term Format Packer
MIT License
217 stars 64 forks source link

Error when installing #27

Open danbulant opened 4 years ago

danbulant commented 4 years ago

> erlpack@0.1.2 install /home/ubuntu/bots/chatbot/node_modules/erlpack
> node-gyp rebuild

make: Entering directory '/home/ubuntu/bots/chatbot/node_modules/erlpack/build'
  CC(target) Release/obj.target/zlib/vendor/zlib/adler32.o
  CC(target) Release/obj.target/zlib/vendor/zlib/compress.o
  CC(target) Release/obj.target/zlib/vendor/zlib/crc32.o
  CC(target) Release/obj.target/zlib/vendor/zlib/deflate.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzclose.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzlib.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzread.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzwrite.o
  CC(target) Release/obj.target/zlib/vendor/zlib/infback.o
../vendor/zlib/infback.c: In function ‘inflateBack’:
../vendor/zlib/infback.c:479:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LEN;
             ~~~~~~~~~~~~^~~~~
../vendor/zlib/infback.c:481:9: note: here
         case LEN:
         ^~~~
  CC(target) Release/obj.target/zlib/vendor/zlib/inffast.o
  CC(target) Release/obj.target/zlib/vendor/zlib/inflate.o
../vendor/zlib/inflate.c: In function ‘inflateMark’:
../vendor/zlib/inflate.c:1507:61: warning: left shift of negative value [-Wshift-negative-value]
     if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                             ^~
../vendor/zlib/inflate.c: In function ‘inflate’:
../vendor/zlib/inflate.c:720:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = EXLEN;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:721:9: note: here
         case EXLEN:
         ^~~~
../vendor/zlib/inflate.c:732:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = EXTRA;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:733:9: note: here
         case EXTRA:
         ^~~~
../vendor/zlib/inflate.c:754:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = NAME;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:755:9: note: here
         case NAME:
         ^~~~
../vendor/zlib/inflate.c:775:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = COMMENT;
             ~~~~~~~~~~~~^~~~~~~~~
../vendor/zlib/inflate.c:776:9: note: here
         case COMMENT:
         ^~~~
../vendor/zlib/inflate.c:795:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = HCRC;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:796:9: note: here
         case HCRC:
         ^~~~
../vendor/zlib/inflate.c:818:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DICT;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:819:9: note: here
         case DICT:
         ^~~~
../vendor/zlib/inflate.c:825:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = TYPE;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:826:9: note: here
         case TYPE:
         ^~~~
../vendor/zlib/inflate.c:827:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_BLOCK || flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:828:9: note: here
         case TYPEDO:
         ^~~~
../vendor/zlib/inflate.c:877:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:878:9: note: here
         case COPY_:
         ^~~~
../vendor/zlib/inflate.c:879:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = COPY;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:880:9: note: here
         case COPY:
         ^~~~
../vendor/zlib/inflate.c:1018:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:1019:9: note: here
         case LEN_:
         ^~~~
../vendor/zlib/inflate.c:1020:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LEN;
             ~~~~~~~~~~~~^~~~~
../vendor/zlib/inflate.c:1021:9: note: here
         case LEN:
         ^~~~
../vendor/zlib/inflate.c:1069:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LENEXT;
             ~~~~~~~~~~~~^~~~~~~~
../vendor/zlib/inflate.c:1070:9: note: here
         case LENEXT:
         ^~~~
../vendor/zlib/inflate.c:1079:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DIST;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:1080:9: note: here
         case DIST:
         ^~~~
../vendor/zlib/inflate.c:1106:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DISTEXT;
             ~~~~~~~~~~~~^~~~~~~~~
../vendor/zlib/inflate.c:1107:9: note: here
         case DISTEXT:
         ^~~~
../vendor/zlib/inflate.c:1122:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = MATCH;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:1123:9: note: here
         case MATCH:
         ^~~~
../vendor/zlib/inflate.c:1197:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LENGTH;
             ~~~~~~~~~~~~^~~~~~~~
../vendor/zlib/inflate.c:1198:9: note: here
         case LENGTH:
         ^~~~
../vendor/zlib/inflate.c:1210:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DONE;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:1211:9: note: here
         case DONE:
         ^~~~
  CC(target) Release/obj.target/zlib/vendor/zlib/inftrees.o
  CC(target) Release/obj.target/zlib/vendor/zlib/trees.o
  CC(target) Release/obj.target/zlib/vendor/zlib/uncompr.o
  CC(target) Release/obj.target/zlib/vendor/zlib/zutil.o
  AR(target) Release/obj.target/vendor/zlib.a
  COPY Release/zlib.a
  CXX(target) Release/obj.target/erlpack/js/erlpack.o
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h: In member function ‘int Encoder::pack(v8::Local<v8::Value>, int)’:
../js/encoder.h:62:44: error: no matching function for call to ‘v8::Value::Int32Value()’
             int number = value->Int32Value();
                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2582:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                                        ^~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2582:40: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:71:68: error: no matching function for call to ‘v8::Value::Uint32Value()’
                 auto uNum = (unsigned long long)value->Uint32Value();
                                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2580:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2580:41: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:76:49: error: no matching function for call to ‘v8::Value::NumberValue()’
             double decimal = value->NumberValue();
                                                 ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2577:39: note: candidate: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
                                       ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2577:39: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:111:53: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                     const auto k = properties->Get(i);
                                                     ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3429:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                   ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:138:49: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 const auto k = properties->Get(i);
                                                 ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3429:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                   ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeArray(uint32_t)’:
../js/decoder.h:101:32: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             array->Set(i, value);
                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeMap()’:
../js/decoder.h:138:32: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             map->Set(key, value);
                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeStringAsList()’:
../js/decoder.h:299:47: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             array->Set(i, decodeSmallInteger());
                                               ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeReference()’:
../js/decoder.h:335:67: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:338:48: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         ids->Set(0, Nan::New<Integer>(read32()));
                                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:339:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("id").ToLocalChecked(), ids);
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:341:89: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                         ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeNewReference()’:
../js/decoder.h:350:67: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:351:89: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                         ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:355:52: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             ids->Set(i, Nan::New<Integer>(read32()));
                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:357:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("id").ToLocalChecked(), ids);
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodePort()’:
../js/decoder.h:364:62: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:365:79: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("id").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                               ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:366:84: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodePID()’:
../js/decoder.h:372:61: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                             ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:373:78: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("id").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:374:82: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("serial").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                                  ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:375:83: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeExport()’:
../js/decoder.h:381:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("mod").ToLocalChecked(), unpack());
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:382:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("fun").ToLocalChecked(), unpack());
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:383:62: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("arity").ToLocalChecked(), unpack());
                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../js/erlpack.cc: At global scope:
../js/erlpack.cc:42:11: error: variable or field ‘Init’ declared void
 void Init(Handle<Object> exports) {
           ^~~~~~
../js/erlpack.cc:42:11: error: ‘Handle’ was not declared in this scope
../js/erlpack.cc:42:11: note: suggested alternative: ‘rand_r’
 void Init(Handle<Object> exports) {
           ^~~~~~
           rand_r
../js/erlpack.cc:42:24: error: expected primary-expression before ‘>’ token
 void Init(Handle<Object> exports) {
                        ^
../js/erlpack.cc:42:26: error: ‘exports’ was not declared in this scope
 void Init(Handle<Object> exports) {
                          ^~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../js/erlpack.cc:1:
../js/erlpack.cc:47:22: error: ‘Init’ was not declared in this scope
 NODE_MODULE(erlpack, Init);
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:560:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../js/erlpack.cc:47:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(erlpack, Init);
 ^~~~~~~~~~~
../js/erlpack.cc:47:22: note: suggested alternative:
 NODE_MODULE(erlpack, Init);
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:560:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../js/erlpack.cc:47:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(erlpack, Init);
 ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:217:18: note:   ‘node::Init’
 NODE_EXTERN void Init(int* argc,
                  ^~~~
erlpack.target.mk:116: recipe for target 'Release/obj.target/erlpack/js/erlpack.o' failed
make: *** [Release/obj.target/erlpack/js/erlpack.o] Error 1
make: Leaving directory '/home/ubuntu/bots/chatbot/node_modules/erlpack/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-1050-aws
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/bots/chatbot/node_modules/erlpack
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN ts-enum-util@4.0.1 requires a peer of typescript@>= 2.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN ts-type@1.2.9 requires a peer of @types/bluebird@* but none is installed. You must install peer dependencies yourself.
npm WARN ts-type@1.2.9 requires a peer of @types/node@* but none is installed. You must install peer dependencies yourself.
npm WARN chatbot@1.0.0 No description
npm WARN chatbot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! erlpack@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the erlpack@0.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2019-11-08T19_06_05_937Z-debug.log
ubuntu@ip-172-31-26-201:~/bots/chatbot$ error: ‘Init’ was not declared in this scope^C
ubuntu@ip-172-31-26-201:~/bots/chatbot$ cd node_modules/
ubuntu@ip-172-31-26-201:~/bots/chatbot/node_modules$ rm -rf *
ubuntu@ip-172-31-26-201:~/bots/chatbot/node_modules$ ls
ubuntu@ip-172-31-26-201:~/bots/chatbot/node_modules$ cd ..
ubuntu@ip-172-31-26-201:~/bots/chatbot$ npm i

> bufferutil@4.0.1 install /home/ubuntu/bots/chatbot/node_modules/bufferutil
> node-gyp-build

> erlpack@0.1.2 install /home/ubuntu/bots/chatbot/node_modules/erlpack
> node-gyp rebuild

make: Entering directory '/home/ubuntu/bots/chatbot/node_modules/erlpack/build'
  CC(target) Release/obj.target/zlib/vendor/zlib/adler32.o
  CC(target) Release/obj.target/zlib/vendor/zlib/compress.o
  CC(target) Release/obj.target/zlib/vendor/zlib/crc32.o
  CC(target) Release/obj.target/zlib/vendor/zlib/deflate.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzclose.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzlib.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzread.o
  CC(target) Release/obj.target/zlib/vendor/zlib/gzwrite.o
  CC(target) Release/obj.target/zlib/vendor/zlib/infback.o
../vendor/zlib/infback.c: In function ‘inflateBack’:
../vendor/zlib/infback.c:479:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LEN;
             ~~~~~~~~~~~~^~~~~
../vendor/zlib/infback.c:481:9: note: here
         case LEN:
         ^~~~
  CC(target) Release/obj.target/zlib/vendor/zlib/inffast.o
  CC(target) Release/obj.target/zlib/vendor/zlib/inflate.o
../vendor/zlib/inflate.c: In function ‘inflateMark’:
../vendor/zlib/inflate.c:1507:61: warning: left shift of negative value [-Wshift-negative-value]
     if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                             ^~
../vendor/zlib/inflate.c: In function ‘inflate’:
../vendor/zlib/inflate.c:720:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = EXLEN;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:721:9: note: here
         case EXLEN:
         ^~~~
../vendor/zlib/inflate.c:732:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = EXTRA;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:733:9: note: here
         case EXTRA:
         ^~~~
../vendor/zlib/inflate.c:754:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = NAME;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:755:9: note: here
         case NAME:
         ^~~~
../vendor/zlib/inflate.c:775:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = COMMENT;
             ~~~~~~~~~~~~^~~~~~~~~
../vendor/zlib/inflate.c:776:9: note: here
         case COMMENT:
         ^~~~
../vendor/zlib/inflate.c:795:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = HCRC;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:796:9: note: here
         case HCRC:
         ^~~~
../vendor/zlib/inflate.c:818:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DICT;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:819:9: note: here
         case DICT:
         ^~~~
../vendor/zlib/inflate.c:825:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = TYPE;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:826:9: note: here
         case TYPE:
         ^~~~
../vendor/zlib/inflate.c:827:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_BLOCK || flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:828:9: note: here
         case TYPEDO:
         ^~~~
../vendor/zlib/inflate.c:877:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:878:9: note: here
         case COPY_:
         ^~~~
../vendor/zlib/inflate.c:879:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = COPY;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:880:9: note: here
         case COPY:
         ^~~~
../vendor/zlib/inflate.c:1018:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (flush == Z_TREES) goto inf_leave;
                ^
../vendor/zlib/inflate.c:1019:9: note: here
         case LEN_:
         ^~~~
../vendor/zlib/inflate.c:1020:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LEN;
             ~~~~~~~~~~~~^~~~~
../vendor/zlib/inflate.c:1021:9: note: here
         case LEN:
         ^~~~
../vendor/zlib/inflate.c:1069:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LENEXT;
             ~~~~~~~~~~~~^~~~~~~~
../vendor/zlib/inflate.c:1070:9: note: here
         case LENEXT:
         ^~~~
../vendor/zlib/inflate.c:1079:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DIST;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:1080:9: note: here
         case DIST:
         ^~~~
../vendor/zlib/inflate.c:1106:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DISTEXT;
             ~~~~~~~~~~~~^~~~~~~~~
../vendor/zlib/inflate.c:1107:9: note: here
         case DISTEXT:
         ^~~~
../vendor/zlib/inflate.c:1122:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = MATCH;
             ~~~~~~~~~~~~^~~~~~~
../vendor/zlib/inflate.c:1123:9: note: here
         case MATCH:
         ^~~~
../vendor/zlib/inflate.c:1197:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = LENGTH;
             ~~~~~~~~~~~~^~~~~~~~
../vendor/zlib/inflate.c:1198:9: note: here
         case LENGTH:
         ^~~~
../vendor/zlib/inflate.c:1210:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
             state->mode = DONE;
             ~~~~~~~~~~~~^~~~~~
../vendor/zlib/inflate.c:1211:9: note: here
         case DONE:
         ^~~~
  CC(target) Release/obj.target/zlib/vendor/zlib/inftrees.o
  CC(target) Release/obj.target/zlib/vendor/zlib/trees.o
  CC(target) Release/obj.target/zlib/vendor/zlib/uncompr.o
  CC(target) Release/obj.target/zlib/vendor/zlib/zutil.o
  AR(target) Release/obj.target/vendor/zlib.a
  COPY Release/zlib.a
  CXX(target) Release/obj.target/erlpack/js/erlpack.o
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h: In member function ‘int Encoder::pack(v8::Local<v8::Value>, int)’:
../js/encoder.h:62:44: error: no matching function for call to ‘v8::Value::Int32Value()’
             int number = value->Int32Value();
                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2582:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                                        ^~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2582:40: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:71:68: error: no matching function for call to ‘v8::Value::Uint32Value()’
                 auto uNum = (unsigned long long)value->Uint32Value();
                                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2580:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2580:41: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:76:49: error: no matching function for call to ‘v8::Value::NumberValue()’
             double decimal = value->NumberValue();
                                                 ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2577:39: note: candidate: v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
                                       ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:2577:39: note:   candidate expects 1 argument, 0 provided
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:111:53: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                     const auto k = properties->Get(i);
                                                     ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3429:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                   ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:2:0:
../js/encoder.h:138:49: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 const auto k = properties->Get(i);
                                                 ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3429:51: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                   ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeArray(uint32_t)’:
../js/decoder.h:101:32: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             array->Set(i, value);
                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeMap()’:
../js/decoder.h:138:32: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             map->Set(key, value);
                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeStringAsList()’:
../js/decoder.h:299:47: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             array->Set(i, decodeSmallInteger());
                                               ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeReference()’:
../js/decoder.h:335:67: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:338:48: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         ids->Set(0, Nan::New<Integer>(read32()));
                                                ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:339:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("id").ToLocalChecked(), ids);
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:341:89: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                         ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeNewReference()’:
../js/decoder.h:350:67: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:351:89: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                         ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:355:52: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             ids->Set(i, Nan::New<Integer>(read32()));
                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3381:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:357:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         reference->Set(Nan::New("id").ToLocalChecked(), ids);
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodePort()’:
../js/decoder.h:364:62: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:365:79: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("id").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                               ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:366:84: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         port->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                    ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodePID()’:
../js/decoder.h:372:61: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("node").ToLocalChecked(), unpack());
                                                             ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:373:78: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("id").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:374:82: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("serial").ToLocalChecked(), Nan::New<Integer>(read32()));
                                                                                  ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:375:83: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         pid->Set(Nan::New("creation").ToLocalChecked(), Nan::New<Integer>(read8()));
                                                                                   ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h: In member function ‘v8::Local<v8::Value> Decoder::decodeExport()’:
../js/decoder.h:381:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("mod").ToLocalChecked(), unpack());
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:382:60: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("fun").ToLocalChecked(), unpack());
                                                            ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../js/erlpack.cc:3:0:
../js/decoder.h:383:62: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         exp->Set(Nan::New("arity").ToLocalChecked(), unpack());
                                                              ^
In file included from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8-internal.h:14:0,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:25,
                 from /home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:63,
                 from ../../nan/nan.h:54,
                 from ../js/erlpack.cc:1:
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8.h:3372:22: note: declared here
                 bool Set(Local<Value> key, Local<Value> value));
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../js/erlpack.cc: At global scope:
../js/erlpack.cc:42:11: error: variable or field ‘Init’ declared void
 void Init(Handle<Object> exports) {
           ^~~~~~
../js/erlpack.cc:42:11: error: ‘Handle’ was not declared in this scope
../js/erlpack.cc:42:11: note: suggested alternative: ‘rand_r’
 void Init(Handle<Object> exports) {
           ^~~~~~
           rand_r
../js/erlpack.cc:42:24: error: expected primary-expression before ‘>’ token
 void Init(Handle<Object> exports) {
                        ^
../js/erlpack.cc:42:26: error: ‘exports’ was not declared in this scope
 void Init(Handle<Object> exports) {
                          ^~~~~~~
In file included from ../../nan/nan.h:54:0,
                 from ../js/erlpack.cc:1:
../js/erlpack.cc:47:22: error: ‘Init’ was not declared in this scope
 NODE_MODULE(erlpack, Init);
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:560:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../js/erlpack.cc:47:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(erlpack, Init);
 ^~~~~~~~~~~
../js/erlpack.cc:47:22: note: suggested alternative:
 NODE_MODULE(erlpack, Init);
                      ^
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:560:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../js/erlpack.cc:47:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(erlpack, Init);
 ^~~~~~~~~~~
/home/ubuntu/.cache/node-gyp/12.10.0/include/node/node.h:217:18: note:   ‘node::Init’
 NODE_EXTERN void Init(int* argc,
                  ^~~~
erlpack.target.mk:116: recipe for target 'Release/obj.target/erlpack/js/erlpack.o' failed
make: *** [Release/obj.target/erlpack/js/erlpack.o] Error 1
make: Leaving directory '/home/ubuntu/bots/chatbot/node_modules/erlpack/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-1050-aws
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/bots/chatbot/node_modules/erlpack
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN chatbot@1.0.0 No description
npm WARN chatbot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! erlpack@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the erlpack@0.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Ubuntu (AWS) 18.04 LTS NPM 6.12.1 Node v12.10.0 (v12.13 after reinstall) Node-gyp v5.0.5

It was working with mathjs only, now when I tried installing mysql, it gave me this error. Tried emptying node_modules folder and installing again.

Tried sudo as well, nothing changed.

As it says error in erlpack, I posted here.

I really don't know what happened and how to fix it.. I reinstalled whole npm (apt-get remove, apt-get install), created new project, tried installing one dependency (that has been working before) and got the same error...

danbulant commented 4 years ago

Removed all modules from /usr/lib/, reinstalled, nothing changed

danbulant commented 4 years ago

Might have been breaking change, when I downgraded to node 11, it worked. It's weird, because I have been using node 12 from start of my project. Also I would appreciate if it would work in node 12 again, because i was using some of new features

TheAkio commented 4 years ago

You should update to version 0.1.3 which is compatible with Node 12. Your install shows that you are using 0.1.2.