I'm trying to follow all the instructions from the README and install module after cloning the repo. But there's an error on the npm install
:
$ npm install
> [email protected] install /home/pavlovdog/esteid.js/node_modules/x509
> node-gyp rebuild
make: Entering directory '/home/pavlovdog/esteid.js/node_modules/x509/build'
CXX(target) Release/obj.target/x509/src/addon.o
In file included from ../../nan/nan.h:194:0,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../../nan/nan_maybe_43_inl.h: In function βNan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)β:
../../nan/nan_maybe_43_inl.h:88:15: error: βclass v8::Objectβ has no member named βForceSetβ
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^
../../nan/nan_maybe_43_inl.h: In function βNan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)β:
../../nan/nan_maybe_43_inl.h:220:17: error: βclass v8::Arrayβ has no member named βCloneElementAtβ
return array->CloneElementAt(GetCurrentContext(), index);
^
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:200,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../../nan/nan_implementation_12_inl.h: In static member function βstatic Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)β:
../../nan/nan_implementation_12_inl.h:40:38: error: no matching function for call to βv8::BooleanObject::New(bool&)β
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:63:0,
from ../include/addon.h:4,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/v8.h:4948:23: note: candidate: static v8::Local<v8::Value> v8::BooleanObject::New(v8::Isolate*, bool)
static Local<Value> New(Isolate* isolate, bool value);
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/v8.h:4948:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:200,
from ../include/x509.h:7,
from ../src/addon.cc:5:
../../nan/nan_implementation_12_inl.h:40:60: error: expected primary-expression before β>β token
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
../../nan/nan_implementation_12_inl.h:40:62: error: expected primary-expression before β)β token
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../../nan/nan.h: In function βv8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)β:
../../nan/nan.h:821:60: warning: βv8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)β is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../include/addon.h:4:0,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro βNODE_DEPRECATEDβ
__attribute__((deprecated(message))) declarator
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../../nan/nan.h: In function βv8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)β:
../../nan/nan.h:835:62: warning: βv8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)β is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../include/addon.h:4:0,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:165:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro βNODE_DEPRECATEDβ
__attribute__((deprecated(message))) declarator
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../../nan/nan.h: In function βv8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)β:
../../nan/nan.h:849:62: warning: βv8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)β is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../include/addon.h:4:0,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:158:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro βNODE_DEPRECATEDβ
__attribute__((deprecated(message))) declarator
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../../nan/nan.h: In member function βv8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) constβ:
../../nan/nan.h:1467:5: warning: βv8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)β is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../include/addon.h:4:0,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro βNODE_DEPRECATEDβ
__attribute__((deprecated(message))) declarator
^
In file included from ../include/x509.h:7:0,
from ../src/addon.cc:5:
../../nan/nan.h: In function βbool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)β:
../../nan/nan.h:1969:16: error: no matching function for call to βv8::Object::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)β
, attribute);
^
In file included from /home/pavlovdog/.node-gyp/10.6.0/include/node/node.h:63:0,
from ../include/addon.h:4,
from ../src/addon.cc:4:
/home/pavlovdog/.node-gyp/10.6.0/include/node/v8.h:3266:37: note: candidate: v8::Maybe<bool> v8::Object::SetAccessor(v8::Local<v8::Context>, v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::MaybeLocal<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType)
V8_WARN_UNUSED_RESULT Maybe<bool> SetAccessor(
^
/home/pavlovdog/.node-gyp/10.6.0/include/node/v8.h:3266:37: note: no known conversion for argument 2 from βNan::imp::NativeGetter {aka void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)}β to βv8::Local<v8::Name>β
x509.target.mk:102: recipe for target 'Release/obj.target/x509/src/addon.o' failed
make: *** [Release/obj.target/x509/src/addon.o] Error 1
make: Leaving directory '/home/pavlovdog/esteid.js/node_modules/x509/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:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.15.0-24-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/pavlovdog/esteid.js/node_modules/x509
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pavlovdog/.npm/_logs/2018-07-12T13_05_42_226Z-debug.log
P.S. I'm using Ubuntu 16.04