Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails #207

Open
veritasdigitalis opened this issue Apr 27, 2020 · 1 comment
Open

npm install fails #207

veritasdigitalis opened this issue Apr 27, 2020 · 1 comment

Comments

@veritasdigitalis
Copy link

veritasdigitalis commented Apr 27, 2020

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 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 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).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 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 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: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sse4_crc32):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: 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.

@zdebra
Copy link
Contributor

zdebra commented May 22, 2021

This is related to ursa dependency not working on node 12+ JoshKaufman/ursa#185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants