git clone https://github.com/mably/lncli-web.git
cd lncli-web
npm install grpc
npm install electron
npm install
details:
nodejs v12.0.0
npm 6.9.0
ubuntu 16.0.4
npm ERR! Failed at the grpc@1.18.0 install script.
CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../ext/byte_buffer.cc:21:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’:
../../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::Local&)’
, obj));
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:4125:31: note: candidate: static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)
static MaybeLocal New(
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:4125:31: note: no known conversion for argument 1 from ‘v8::Isolate’ to ‘v8::Local’
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../ext/byte_buffer.cc:21:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’
return v8::StringObject::New(value).As();
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate: static v8::Local v8::StringObject::New(v8::Isolate, v8::Local)
static Local New(Isolate isolate, Local value);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../ext/byte_buffer.cc:21:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).As();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).As();
^
In file included from ../ext/byte_buffer.cc:21:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’:
../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Local string = from->ToString();
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mouse/.node-gyp/12.0.0/include/node/v8-internal.h:14:0,
from /home/mouse/.node-gyp/12.0.0/include/node/v8.h:25,
from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const
Local ToString(Isolate isolate) const);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator attribute((deprecated(message)))
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate isolate) const);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator attribute((deprecated(message)))
^
In file included from ../ext/byte_buffer.cc:21:0:
../../nan/nan.h:926:74: error: no matching function for call to ‘v8::String::WriteUtf8(char&, int, int, const int&)’
length = string->WriteUtf8(str, static_cast(len), 0, flags);
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2738:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const
int WriteUtf8(Isolate isolate, char buffer, int length = -1,
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2738:7: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate*’
grpc_node.target.mk:184: recipe for target 'Release/obj.target/grpc_node/ext/byte_buffer.o' failed
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
make: Leaving directory '/home/mouse/lightning/lncli-web/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Linux 4.15.0-96-generic
gyp ERR! command "/home/mouse/.nvm/versions/node/v12.0.0/bin/node" "/home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /home/mouse/lightning/lncli-web/node_modules/grpc
gyp ERR! node -v v12.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/mouse/.nvm/versions/node/v12.0.0/bin/node /home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/mouse/lightning/lncli-web/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:196:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1000:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
node-pre-gyp ERR! System Linux 4.15.0-96-generic
node-pre-gyp ERR! command "/home/mouse/.nvm/versions/node/v12.0.0/bin/node" "/home/mouse/lightning/lncli-web/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/mouse/lightning/lncli-web/node_modules/grpc
node-pre-gyp ERR! node -v v12.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/home/mouse/.nvm/versions/node/v12.0.0/bin/node /home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sse4_crc32@5.2.0 (node_modules/sse4_crc32):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sse4_crc32@5.2.0 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.18.0 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.18.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
update, these steps worked:
details:
nodejs v12.0.0 npm 6.9.0 ubuntu 16.0.4
npm ERR! Failed at the grpc@1.18.0 install script.
CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o In file included from ../../nan/nan_new.h:189:0, from ../../nan/nan.h:203, from ../ext/byte_buffer.cc:21: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’:
../../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::Local&)’
, obj));
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:4125:31: note: candidate: static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)
static MaybeLocal New(
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:4125:31: note: no known conversion for argument 1 from ‘v8::Isolate ’ to ‘v8::Local’
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../ext/byte_buffer.cc:21:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’
return v8::StringObject::New(value).As();
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate: static v8::Local v8::StringObject::New(v8::Isolate, v8::Local)
static Local New(Isolate isolate, Local value);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../ext/byte_buffer.cc:21:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).As();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).As();
^
In file included from ../ext/byte_buffer.cc:21:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’:
../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Local string = from->ToString();
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mouse/.node-gyp/12.0.0/include/node/v8-internal.h:14:0,
from /home/mouse/.node-gyp/12.0.0/include/node/v8.h:25,
from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const
Local ToString(Isolate isolate) const);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator attribute((deprecated(message)))
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate isolate) const);
^
/home/mouse/.node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
declarator attribute((deprecated(message)))
^
In file included from ../ext/byte_buffer.cc:21:0:
../../nan/nan.h:926:74: error: no matching function for call to ‘v8::String::WriteUtf8(char&, int, int, const int&)’
length = string->WriteUtf8(str, static_cast(len), 0, flags);
^
In file included from /home/mouse/.node-gyp/12.0.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../ext/byte_buffer.cc:21:
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2738:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const
int WriteUtf8(Isolate isolate, char buffer, int length = -1,
^
/home/mouse/.node-gyp/12.0.0/include/node/v8.h:2738:7: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate*’
grpc_node.target.mk:184: recipe for target 'Release/obj.target/grpc_node/ext/byte_buffer.o' failed
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
make: Leaving directory '/home/mouse/lightning/lncli-web/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: (/home/mouse/lightning/lncli-web/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:196:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1000:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
node-pre-gyp ERR! System Linux 4.15.0-96-generic
node-pre-gyp ERR! command "/home/mouse/.nvm/versions/node/v12.0.0/bin/node" "/home/mouse/lightning/lncli-web/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/mouse/lightning/lncli-web/node_modules/grpc
node-pre-gyp ERR! node -v v12.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/home/mouse/.nvm/versions/node/v12.0.0/bin/node /home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sse4_crc32@5.2.0 (node_modules/sse4_crc32):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sse4_crc32@5.2.0 install:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:196:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12) gyp ERR! System Linux 4.15.0-96-generic gyp ERR! command "/home/mouse/.nvm/versions/node/v12.0.0/bin/node" "/home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" gyp ERR! cwd /home/mouse/lightning/lncli-web/node_modules/grpc gyp ERR! node -v v12.0.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/home/mouse/.nvm/versions/node/v12.0.0/bin/node /home/mouse/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/mouse/lightning/lncli-web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) node-pre-gyp ERR! stack at ChildProcess.node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.18.0 install:
node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.18.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.