lncli-web
lncli-web copied to clipboard
npm install fails
update, these steps worked:
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 [email protected] 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::FactoryBasev8::Function::return_t Nan::imp::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’
, 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::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)
static MaybeLocal<Function> 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::Localv8::Context’
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::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
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::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)
static Local<Value> New(Isolate* isolate, Local<String> 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).Asv8::StringObject();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../ext/byte_buffer.cc:21:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Localv8::String 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::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal<String> 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::Localv8::String v8::Value::ToString(v8::Isolate*) const
Local<String> 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<String> 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_castmake
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 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This is related to ursa
dependency not working on node 12+ https://github.com/JoshKaufman/ursa/issues/185