question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running demo is broken ?

See original GitHub issue

I’m trying to run the demo on ubuntu 18.04.3 LTS. I’ve tried with npm install and yarn, but always stuck a this step.

test@test:~/Projets/Java/xtermjs/xterm.js-4.3.0$ yarn
yarn install v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/3] ⡀ node-pty
[2/3] ⡀ puppeteer
error /home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments: 
Directory: /home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.5
gyp info using node@13.5.0 | linux | x64
gyp info find Python using Python version 2.7.17 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/test/.cache/node-gyp/13.5.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/test/.cache/node-gyp/13.5.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/test/.cache/node-gyp/13.5.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../../nan/nan_converters.h:67:0,
                 from ../../nan/nan.h:202,
                 from ../src/unix/pty.cc:20:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:18:51: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’
       val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                   ^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
 X(Boolean)
 ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2762:18: note: candidate: v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const
   Local<Boolean> ToBoolean(Isolate* isolate) const;
                  ^~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2762:18: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
In file included from ../../nan/nan_converters.h:67:0,
                 from ../../nan/nan.h:202,
                 from ../src/unix/pty.cc:20:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’
   return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                         ^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
 X(bool, Boolean)
 ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2771:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
   bool BooleanValue(Isolate* isolate) const;
        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2771:8: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                           , obj));
                                ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:4312:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
   static MaybeLocal<Function> New(
                               ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:4312:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:5688:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
   static Local<Value> New(Isolate* isolate, Local<String> value);
                       ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:5688:23: note:   candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:203,
                 from ../src/unix/pty.cc:20:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                          ^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                            ^
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note:   candidate expects 1 argument, 0 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h:1044:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2947:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
       ^~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2947:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1818:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note:   candidate expects 3 arguments, 2 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1824:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(key, value);
                                          ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note:   candidate expects 3 arguments, 2 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1830:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(index, value);
                                            ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3547:37: note:   candidate expects 3 arguments, 2 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3550:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1836:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
         New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                             ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note:   candidate expects 2 arguments, 1 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
../../nan/nan.h:1842:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
     return scope.Escape(New(persistentHandle)->Get(key));
                                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note:   candidate expects 2 arguments, 1 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1847:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
     return scope.Escape(New(persistentHandle)->Get(index));
                                                         ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note:   candidate expects 2 arguments, 1 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/test/.cache/node-gyp/13.5.0/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:53,
                 from ../src/unix/pty.cc:20:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(persistent().IsNearDeath());
                         ^
In file included from ../../nan/nan.h:2657:0,
                 from ../src/unix/pty.cc:20:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
     persistent().MarkIndependent();
                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/test/.cache/node-gyp/13.5.0/include/node/node_object_wrap.h:26,
                 from ../../nan/nan.h:53,
                 from ../src/unix/pty.cc:20:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(wrap->handle_.IsNearDeath());
                          ^
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:161:48: error: no matching function for call to ‘v8::Value::ToString()’
   v8::String::Utf8Value file(info[0]->ToString());
                                                ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:172:66: error: no matching function for call to ‘v8::Array::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’
     v8::String::Utf8Value arg(argv_->Get(Nan::New<v8::Integer>(i))->ToString());
                                                                  ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note:   candidate expects 2 arguments, 1 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:183:66: error: no matching function for call to ‘v8::Array::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’
     v8::String::Utf8Value pair(env_->Get(Nan::New<v8::Integer>(i))->ToString());
                                                                  ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note:   candidate expects 2 arguments, 1 provided
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:188:48: error: no matching function for call to ‘v8::Value::ToString()’
   v8::String::Utf8Value cwd_(info[3]->ToString());
                                                ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:193:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_col = info[4]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:194:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_row = info[5]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:202:26: error: no matching function for call to ‘v8::Value::ToBoolean()’
   if (info[8]->ToBoolean()->Value()) {
                          ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2762:18: note: candidate: v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const
   Local<Boolean> ToBoolean(Isolate* isolate) const;
                  ^~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2762:18: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:237:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int uid = info[6]->IntegerValue();
                                   ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:238:35: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int gid = info[7]->IntegerValue();
                                   ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyOpen(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:322:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_col = info[0]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:323:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_row = info[1]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyKill(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:367:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int fd = info[0]->IntegerValue();
                                  ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:368:38: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int signal = info[1]->IntegerValue();
                                      ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyResize(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:390:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int fd = info[0]->IntegerValue();
                                  ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:393:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_col = info[1]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:394:39: error: no matching function for call to ‘v8::Value::IntegerValue()’
   winp.ws_row = info[2]->IntegerValue();
                                       ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
   int fd = info[0]->IntegerValue();
                                  ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note: candidate: v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                                        ^~~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2774:40: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:419:48: error: no matching function for call to ‘v8::Value::ToString()’
   v8::String::Utf8Value tty_(info[1]->ToString());
                                                ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:2750:44: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc: In function ‘void pty_after_waitpid(uv_async_t*)’:
../src/unix/pty.cc:519:69: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   Nan::Callback(cb).Call(Nan::GetCurrentContext()->Global(), 2, argv);
                                                                     ^
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h:1596:3: note: declared here
   Call(v8::Local<v8::Object> target
   ^~~~
../src/unix/pty.cc: In function ‘void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/unix/pty.cc:735:65: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
            Nan::New<v8::FunctionTemplate>(PtyFork)->GetFunction());
                                                                 ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                              ^~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:738:65: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
            Nan::New<v8::FunctionTemplate>(PtyOpen)->GetFunction());
                                                                 ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                              ^~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:742:65: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
            Nan::New<v8::FunctionTemplate>(PtyKill)->GetFunction());
                                                                 ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                              ^~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:746:67: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
            Nan::New<v8::FunctionTemplate>(PtyResize)->GetFunction());
                                                                   ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                              ^~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:749:68: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
            Nan::New<v8::FunctionTemplate>(PtyGetProc)->GetFunction());
                                                                    ^
In file included from /home/test/.cache/node-gyp/13.5.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/unix/pty.cc:20:
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                              ^~~~~~~~~~~
/home/test/.cache/node-gyp/13.5.0/include/node/v8.h:6283:46: note:   candidate expects 1 argument, 0 provided
pty.target.mk:109: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: Leaving directory '/home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty/build'
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
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:305:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-72-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/test/Projets/Java/xtermjs/xterm.js-4.3.0/node_modules/node-pty
gyp ERR! node -v v13.5.0
gyp ERR! node-gyp -v v5.0.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Rico66100commented, Dec 26, 2019

Ok, by default npm download node-pty v0.7.6. Just needed to update it to 0.9.0.

0reactions
jerchcommented, Dec 26, 2019

@Rico66100 Yes node-pty required by xterm.js was abit oldish until recently (next version will require v0.9). But plz note that we dont test against unstable nodejs branches like v13, latest tested version is v12.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PSA - Demo is broken - Warlock - World of Warcraft Forums
I was running a 24 JY on my Demo lock when I noticed my Dreadstalkers weren't generating DC stacks when they were expiring....
Read more >
Is the demo broken? :: Mount & Blade Help and Support
I downloaded the demo, and when i run it, it says it's running but it never comes up. I've redownloaded it as well,...
Read more >
Demo layout is broken | WordPress.org
I've installed a demo of the OceanWP theme, but the website appears without ... Import sample-data.xml file from Tools > Import, and Run...
Read more >
FlexScroll Demo is broken · Issue #11269 · primefaces/primeng
When running the PrimeNG "FlexScroll" demo, only the caption: "Virtual Scrolling with Lazy Loading and Full Page Viewport" is displayed.
Read more >
Conquest Product Inauguration and Demo Weekend at The ...
Come celebrate Michigan's newest game store to carry Conquest by Para Bellum! The Broken Sword located in Plainwell, Michigan is expected ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found