If I run npm install, it will throws me a ton of messages that I don't understand originated from #atom/watcher I think.
$ npm install
> #atom/watcher#1.0.3 install /home/vdegenne/Gits/node/github-fetch-starter/node_modules/#atom/watcher
> node --harmony script/helper/gen-compilation-db.js rebuild
make: Entering directory '/home/vdegenne/Gits/node/github-fetch-starter/node_modules/#atom/watcher/build'
CXX(target) Release/obj.target/watcher/src/binding.o
In file included from ../../../nan/nan.h:192:0,
from ../src/binding.cpp:2:
../../../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:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
bj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from /home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:26:0,
from /home/vdegenne/.node-gyp/9.10.1/include/node/node.h:63,
from ../../../nan/nan.h:49,
from ../src/binding.cpp:2:
/home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:3165:29: note: declared here
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/vdegenne/.node-gyp/9.10.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/watcher/src/hub.o
In file included from ../../../nan/nan.h:192:0,
from ../src/hub.cpp:3:
../../../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:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
bj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from /home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:26:0,
from /home/vdegenne/.node-gyp/9.10.1/include/node/node.h:63,
from ../../../nan/nan.h:49,
from ../src/hub.cpp:3:
/home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:3165:29: note: declared here
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/vdegenne/.node-gyp/9.10.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/watcher/src/log.o
CXX(target) Release/obj.target/watcher/src/errable.o
CXX(target) Release/obj.target/watcher/src/queue.o
CXX(target) Release/obj.target/watcher/src/lock.o
CXX(target) Release/obj.target/watcher/src/message.o
CXX(target) Release/obj.target/watcher/src/message_buffer.o
CXX(target) Release/obj.target/watcher/src/thread_starter.o
CXX(target) Release/obj.target/watcher/src/thread.o
CXX(target) Release/obj.target/watcher/src/status.o
CXX(target) Release/obj.target/watcher/src/worker/worker_thread.o
CXX(target) Release/obj.target/watcher/src/worker/recent_file_cache.o
CXX(target) Release/obj.target/watcher/src/polling/directory_record.o
CXX(target) Release/obj.target/watcher/src/polling/polled_root.o
CXX(target) Release/obj.target/watcher/src/polling/polling_iterator.o
CXX(target) Release/obj.target/watcher/src/polling/polling_thread.o
CXX(target) Release/obj.target/watcher/src/helper/libuv.o
CXX(target) Release/obj.target/watcher/src/nan/all_callback.o
In file included from ../../../nan/nan.h:192:0,
from ../src/nan/all_callback.cpp:3:
../../../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:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
bj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from /home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:26:0,
from /home/vdegenne/.node-gyp/9.10.1/include/node/node.h:63,
from ../../../nan/nan.h:49,
from ../src/nan/all_callback.cpp:3:
/home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:3165:29: note: declared here
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/vdegenne/.node-gyp/9.10.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/watcher/src/nan/functional_callback.o
In file included from ../../../nan/nan.h:192:0,
from ../src/nan/functional_callback.cpp:3:
../../../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:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
bj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from /home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:26:0,
from /home/vdegenne/.node-gyp/9.10.1/include/node/node.h:63,
from ../../../nan/nan.h:49,
from ../src/nan/functional_callback.cpp:3:
/home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:3165:29: note: declared here
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/vdegenne/.node-gyp/9.10.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/watcher/src/nan/options.o
In file included from ../../../nan/nan.h:192:0,
from ../src/nan/options.cpp:1:
../../../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:112:73: warning: ‘v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations]
bj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from /home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:26:0,
from /home/vdegenne/.node-gyp/9.10.1/include/node/node.h:63,
from ../../../nan/nan.h:49,
from ../src/nan/options.cpp:1:
/home/vdegenne/.node-gyp/9.10.1/include/node/v8.h:3165:29: note: declared here
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/vdegenne/.node-gyp/9.10.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/watcher/src/helper/common_posix.o
CXX(target) Release/obj.target/watcher/src/worker/linux/pipe.o
CXX(target) Release/obj.target/watcher/src/worker/linux/side_effect.o
CXX(target) Release/obj.target/watcher/src/worker/linux/cookie_jar.o
CXX(target) Release/obj.target/watcher/src/worker/linux/watched_directory.o
CXX(target) Release/obj.target/watcher/src/worker/linux/watch_registry.o
CXX(target) Release/obj.target/watcher/src/worker/linux/linux_worker_platform.o
SOLINK_MODULE(target) Release/obj.target/watcher.node
COPY Release/watcher.node
make: Leaving directory '/home/vdegenne/Gits/node/github-fetch-starter/node_modules/#atom/watcher/build'
npm WARN prepublish-on-install As of npm#5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
> github-fetch-starter#1.0.0 prepublish /home/vdegenne/Gits/node/github-fetch-starter
> npm run build
> github-fetch-starter#1.0.0 build /home/vdegenne/Gits/node/github-fetch-starter
> tsc
npm WARN github-fetch-starter#1.0.0 No repository field.
added 192 packages from 483 contributors in 21.847s
Why are those messages, how can I prevent this ? I never saw these messages before but I can't know what I did wrong, if I did something wrong ?
These are warnings from compiling the C++ in the #atom/watcher package. It doesn't fail to install so it's safe to say that you can ignore them.
I tried npm install #atom/watcher and the exit status was 0 - echo $? - so successfully installed.
Related
I was trying to deploy my website to Microsoft Azure Linux App Service with Github actions. In glitch, project is perfectly working but in azure gives error
I don't have canvas in my package.json and I don't use it but azure seems try to install that. Can you help? Here is the logs:
2020-08-09T10:17:31.9162150Z > canvas#1.6.13 install /home/runner/work/UNITE/UNITE/node_modules/canvas
2020-08-09T10:17:31.9202046Z > node-gyp rebuild
2020-08-09T10:17:31.9202737Z
2020-08-09T10:17:34.0385309Z make: Entering directory '/home/runner/work/UNITE/UNITE/node_modules/canvas/build'
2020-08-09T10:17:34.0426950Z SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
2020-08-09T10:17:34.0973375Z COPY Release/canvas-postbuild.node
2020-08-09T10:17:34.1069049Z CXX(target) Release/obj.target/canvas/src/Canvas.o
2020-08-09T10:17:35.4454935Z In file included from ../src/Canvas.cc:20:0:
2020-08-09T10:17:35.4468582Z ../src/JPEGStream.h: In function ‘boolean empty_closure_output_buffer(j_compress_ptr)’:
2020-08-09T10:17:35.4486281Z ../src/JPEGStream.h:42:108: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4504659Z Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, argv);
2020-08-09T10:17:35.4522442Z ^
2020-08-09T10:17:35.4523871Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4524808Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4525632Z ../../nan/nan.h:1026:46: note: declared here
2020-08-09T10:17:35.4526405Z NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2020-08-09T10:17:35.4527132Z ^~~~~~~~~~~~
2020-08-09T10:17:35.4528183Z In file included from ../src/Canvas.cc:20:0:
2020-08-09T10:17:35.4529827Z ../src/JPEGStream.h: In function ‘void term_closure_destination(j_compress_ptr)’:
2020-08-09T10:17:35.4532207Z ../src/JPEGStream.h:63:113: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4533900Z Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, data_argv);
2020-08-09T10:17:35.4534837Z ^
2020-08-09T10:17:35.4535600Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4536313Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4537052Z ../../nan/nan.h:1026:46: note: declared here
2020-08-09T10:17:35.4537744Z NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2020-08-09T10:17:35.4538864Z ^~~~~~~~~~~~
2020-08-09T10:17:35.4539586Z In file included from ../src/Canvas.cc:20:0:
2020-08-09T10:17:35.4541835Z ../src/JPEGStream.h:71:112: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4543438Z Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)dest->closure->fn, 2, end_argv);
2020-08-09T10:17:35.4544561Z ^
2020-08-09T10:17:35.4545341Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4546040Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4546761Z ../../nan/nan.h:1026:46: note: declared here
2020-08-09T10:17:35.4547439Z NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2020-08-09T10:17:35.4548171Z ^~~~~~~~~~~~
2020-08-09T10:17:35.4549566Z ../src/Canvas.cc: In static member function ‘static void Canvas::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
2020-08-09T10:17:35.4553387Z ../src/Canvas.cc:60:75: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
2020-08-09T10:17:35.4554026Z Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction());
2020-08-09T10:17:35.4554314Z ^
2020-08-09T10:17:35.4554634Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4554860Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4555923Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:6126:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
2020-08-09T10:17:35.4556178Z V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
2020-08-09T10:17:35.4556417Z ^~~~~~~~~~~
2020-08-09T10:17:35.4557087Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4557986Z ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::New(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-08-09T10:17:35.4558924Z ../src/Canvas.cc:74:57: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4559347Z if (info[0]->IsNumber()) width = info[0]->Uint32Value();
2020-08-09T10:17:35.4559731Z ^
2020-08-09T10:17:35.4560077Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4560285Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4561219Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4561457Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4561688Z ^~~~~~~~~~~
2020-08-09T10:17:35.4562250Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4562969Z ../src/Canvas.cc:75:58: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4563350Z if (info[1]->IsNumber()) height = info[1]->Uint32Value();
2020-08-09T10:17:35.4563581Z ^
2020-08-09T10:17:35.4563817Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4564025Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4564940Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4565170Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4565380Z ^~~~~~~~~~~
2020-08-09T10:17:35.4566113Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4566929Z ../src/Canvas.cc:76:76: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
2020-08-09T10:17:35.4567598Z if (info[2]->IsString()) type = !strcmp("pdf", *String::Utf8Value(info[2]))
2020-08-09T10:17:35.4567861Z ^
2020-08-09T10:17:35.4568090Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4568392Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4569267Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
2020-08-09T10:17:35.4569519Z Utf8Value(Isolate* isolate, Local<v8::Value> obj);
2020-08-09T10:17:35.4569675Z ^~~~~~~~~
2020-08-09T10:17:35.4570216Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
2020-08-09T10:17:35.4571008Z ../src/Canvas.cc:78:48: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
2020-08-09T10:17:35.4571244Z : !strcmp("svg", *String::Utf8Value(info[2]))
2020-08-09T10:17:35.4571456Z ^
2020-08-09T10:17:35.4571679Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4571883Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4572759Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
2020-08-09T10:17:35.4572983Z Utf8Value(Isolate* isolate, Local<v8::Value> obj);
2020-08-09T10:17:35.4573121Z ^~~~~~~~~
2020-08-09T10:17:35.4573595Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
2020-08-09T10:17:35.4574380Z ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetWidth(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’:
2020-08-09T10:17:35.4574995Z ../src/Canvas.cc:119:40: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4575298Z canvas->width = value->Uint32Value();
2020-08-09T10:17:35.4575477Z ^
2020-08-09T10:17:35.4575664Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4575858Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4576644Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4576848Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4577034Z ^~~~~~~~~~~
2020-08-09T10:17:35.4577516Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4578297Z ../src/Canvas.cc: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE Canvas::SetHeight(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’:
2020-08-09T10:17:35.4578900Z ../src/Canvas.cc:140:41: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4579203Z canvas->height = value->Uint32Value();
2020-08-09T10:17:35.4579379Z ^
2020-08-09T10:17:35.4579566Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4579760Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4580505Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4580705Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4580892Z ^~~~~~~~~~~
2020-08-09T10:17:35.4581474Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4582068Z ../src/Canvas.cc: In static member function ‘static void Canvas::ToBufferAsyncAfter(uv_work_t*)’:
2020-08-09T10:17:35.4582777Z ../src/Canvas.cc:221:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4583076Z closure->pfn->Call(1, argv);
2020-08-09T10:17:35.4583239Z ^
2020-08-09T10:17:35.4583492Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4583680Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4583872Z ../../nan/nan.h:1742:3: note: declared here
2020-08-09T10:17:35.4584053Z Call(int argc, v8::Local<v8::Value> argv[]) const {
2020-08-09T10:17:35.4584185Z ^~~~
2020-08-09T10:17:35.4584880Z ../src/Canvas.cc:226:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4585214Z closure->pfn->Call(2, argv);
2020-08-09T10:17:35.4585374Z ^
2020-08-09T10:17:35.4585564Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4585744Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4585931Z ../../nan/nan.h:1742:3: note: declared here
2020-08-09T10:17:35.4586112Z Call(int argc, v8::Local<v8::Value> argv[]) const {
2020-08-09T10:17:35.4586240Z ^~~~
2020-08-09T10:17:35.4586882Z ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-08-09T10:17:35.4587484Z ../src/Canvas.cc:274:52: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4587812Z compression_level = info[1]->Uint32Value();
2020-08-09T10:17:35.4588004Z ^
2020-08-09T10:17:35.4588195Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4588410Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4589157Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4589354Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4589539Z ^~~~~~~~~~~
2020-08-09T10:17:35.4590018Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4590620Z ../src/Canvas.cc:279:49: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4590955Z uint32_t tmp = info[1]->Uint32Value();
2020-08-09T10:17:35.4591143Z ^
2020-08-09T10:17:35.4591335Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4591514Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4592261Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4592461Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4592647Z ^~~~~~~~~~~
2020-08-09T10:17:35.4593124Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4593713Z ../src/Canvas.cc:301:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4594028Z filter = info[2]->Uint32Value();
2020-08-09T10:17:35.4594203Z ^
2020-08-09T10:17:35.4594391Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4594570Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4595334Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4595594Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4595779Z ^~~~~~~~~~~
2020-08-09T10:17:35.4596262Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4596933Z ../src/Canvas.cc: In function ‘cairo_status_t streamPNG(void*, const uint8_t*, unsigned int)’:
2020-08-09T10:17:35.4597903Z ../src/Canvas.cc:377:102: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4640957Z Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv);
2020-08-09T10:17:35.4641326Z ^
2020-08-09T10:17:35.4641597Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4641847Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4642084Z ../../nan/nan.h:1026:46: note: declared here
2020-08-09T10:17:35.4642323Z NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2020-08-09T10:17:35.4642560Z ^~~~~~~~~~~~
2020-08-09T10:17:35.4643438Z ../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamPNGSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-08-09T10:17:35.4644198Z ../src/Canvas.cc:396:52: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4644614Z compression_level = info[1]->Uint32Value();
2020-08-09T10:17:35.4644850Z ^
2020-08-09T10:17:35.4645088Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4645309Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4646234Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4646500Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4646726Z ^~~~~~~~~~~
2020-08-09T10:17:35.4647319Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4648055Z ../src/Canvas.cc:401:49: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4648462Z uint32_t tmp = info[1]->Uint32Value();
2020-08-09T10:17:35.4648701Z ^
2020-08-09T10:17:35.4648937Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4649156Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4650073Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4650328Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4650555Z ^~~~~~~~~~~
2020-08-09T10:17:35.4651143Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4651969Z ../src/Canvas.cc:423:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-08-09T10:17:35.4652317Z filter = info[2]->Uint32Value();
2020-08-09T10:17:35.4652515Z ^
2020-08-09T10:17:35.4652737Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4652940Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4653786Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4654018Z V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-08-09T10:17:35.4654227Z ^~~~~~~~~~~
2020-08-09T10:17:35.4654964Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4655886Z ../src/Canvas.cc:446:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4656494Z Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure.fn, 1, argv);
2020-08-09T10:17:35.4656893Z ^
2020-08-09T10:17:35.4683530Z In file included from ../src/Canvas.h:22:0,
2020-08-09T10:17:35.4683765Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4683989Z ../../nan/nan.h:1026:46: note: declared here
2020-08-09T10:17:35.4684215Z NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2020-08-09T10:17:35.4684440Z ^~~~~~~~~~~~
2020-08-09T10:17:35.4685571Z ../src/Canvas.cc:452:103: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2020-08-09T10:17:35.4717590Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4718089Z In file included from /home/runner/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14:0,
2020-08-09T10:17:35.4718529Z from /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:27,
2020-08-09T10:17:35.4718724Z from ../src/Canvas.h:11,
2020-08-09T10:17:35.4719012Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4719721Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
2020-08-09T10:17:35.4772536Z Local<Object> ToObject(Isolate* isolate) const);
2020-08-09T10:17:35.4772780Z ^
2020-08-09T10:17:35.4773582Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-08-09T10:17:35.4773819Z declarator __attribute__((deprecated(message)))
2020-08-09T10:17:35.4773983Z ^~~~~~~~~~
2020-08-09T10:17:35.4774575Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
2020-08-09T10:17:35.4774860Z Local<Object> ToObject(Isolate* isolate) const);
2020-08-09T10:17:35.4775061Z ^
2020-08-09T10:17:35.4775646Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-08-09T10:17:35.4775878Z declarator __attribute__((deprecated(message)))
2020-08-09T10:17:35.4776040Z ^~~~~~~~~~
2020-08-09T10:17:35.4776958Z ../src/Canvas.cc:655:73: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
2020-08-09T10:17:35.4777569Z context = canvas->Get(Nan::New<String>("context").ToLocalChecked());
2020-08-09T10:17:35.4777845Z ^
2020-08-09T10:17:35.4778375Z In file included from /home/runner/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14:0,
2020-08-09T10:17:35.4778863Z from /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:27,
2020-08-09T10:17:35.4779232Z from ../src/Canvas.h:11,
2020-08-09T10:17:35.4779431Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4779947Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:3553:51: note: declared here
2020-08-09T10:17:35.4780193Z V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
2020-08-09T10:17:35.4780434Z ^
2020-08-09T10:17:35.4781091Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-08-09T10:17:35.4781325Z declarator __attribute__((deprecated(message)))
2020-08-09T10:17:35.4781487Z ^~~~~~~~~~
2020-08-09T10:17:35.4782206Z ../src/Canvas.cc:657:85: error: no matching function for call to ‘v8::Value::ToObject()’
2020-08-09T10:17:35.4782837Z Context2d *context2d = Nan::ObjectWrap::Unwrap<Context2d>(context->ToObject());
2020-08-09T10:17:35.4783133Z ^
2020-08-09T10:17:35.4783388Z In file included from ../src/Canvas.h:11:0,
2020-08-09T10:17:35.4783606Z from ../src/Canvas.cc:7:
2020-08-09T10:17:35.4784771Z /home/runner/.cache/node-gyp/12.18.3/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
2020-08-09T10:17:35.4785021Z V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
2020-08-09T10:17:35.4785250Z ^~~~~~~~
2020-08-09T10:17:35.5490609Z
home/runner/work/UNITE/UNITE/node_modules/canvas
2020-08-09T10:17:35.5490609Z gyp ERR! node -v v12.18.3
2020-08-09T10:17:35.5491022Z gyp ERR! node-gyp -v v5.1.0
2020-08-09T10:17:35.5491278Z gyp ERR! not ok
2020-08-09T10:17:35.7641923Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules/chokidar/node_modules/fsevents):
2020-08-09T10:17:35.8416156Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-08-09T10:17:35.8417216Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules/external-ip/node_modules/fsevents):
2020-08-09T10:17:35.8417667Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-08-09T10:17:35.8417824Z
2020-08-09T10:17:35.8417996Z npm ERR! code ELIFECYCLE
2020-08-09T10:17:35.8418162Z npm ERR! errno 1
2020-08-09T10:17:35.8418555Z npm ERR! canvas#1.6.13 install: `node-gyp rebuild`
2020-08-09T10:17:35.8418736Z npm ERR! Exit status 1
2020-08-09T10:17:35.8418889Z npm ERR!
2020-08-09T10:17:35.8419113Z npm ERR! Failed at the canvas#1.6.13 install script.
2020-08-09T10:17:35.8419427Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-09T10:17:35.8447875Z
2020-08-09T10:17:35.8448259Z npm ERR! A complete log of this run can be found in:
2020-08-09T10:17:35.8449274Z npm ERR! /home/runner/.npm/_logs/2020-08-09T10_17_35_838Z-debug.log
2020-08-09T10:17:35.8630218Z ##[error]Process completed with exit code 1.
mine suggestion to you is install visual studio code. Then add Azure App service extension to it.
Open the node application folder.
Run npm install command.
then run your app with npm run dev.
Once it is running fine you can deploy it to azure.
Her is a detailed article if you need some help. Link
Is there some solution to get rid of this warning? Console displays it during the Docker image creating. There are a lot of topics all over the internet and no working solution. Since bcrypt js lib creators think that it's fine to not fixing it for years maybe it's possible to import something manually or anything like that.
Node.js v12
bcrypt v3
Docker v19
> bcrypt#3.0.6 install /usr/src/app/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
make: Entering directory '/usr/src/app/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:1:
../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
../../nan/nan.h:2232:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from ../../nan/nan.h:53,
from ../src/bcrypt_node.cc:1:
../src/bcrypt_node.cc: At global scope:
/root/.node-gyp/12.4.0/include/node/node.h:556:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/root/.node-gyp/12.4.0/include/node/node.h:590:3: note: in expansion of macro 'NODE_MODULE_X'
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/bcrypt_node.cc:378:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(bcrypt_lib, init);
^~~~~~~~~~~
In file included from /root/.node-gyp/12.4.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/bcrypt_node.cc:1:
/root/.node-gyp/12.4.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
/root/.node-gyp/12.4.0/include/node/node_object_wrap.h:84:78: required from here
/root/.node-gyp/12.4.0/include/node/v8.h:9817:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.node-gyp/12.4.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
../../nan/nan_object_wrap.h:65:61: required from here
/root/.node-gyp/12.4.0/include/node/v8.h:9817:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]```
the warning is there for a reason, if you want to hide it, you have few choices
submit a fix to upstream to actually fix the code to remove the warning
hide it by submitting a fix to upstream and add -Wno-cast-function-type to gcc. it's up to maintainer to accept it.
submit a fix to upstream to add prebuilt binary for node 12 so that you won't have to compile every time (hence it won't trigger gcc to build). right now looks like only windows have prebuilt binary for node 12 (search for v72-linux)
https://github.com/kelektiv/node.bcrypt.js/releases/tag/v3.0.6
Are you able to use bycryptjs to avoid this issue?
The bycrypt entirely depends on the node version. Or you have to choose the suitable version of bycrypt or downgrade the version of bycrypt
I have tons of warnings for installing [bcrypt][1] in my node.js:
$ npm install bcrypt
> bcrypt#3.0.6 install /var/www/html/projects/citizen-sense-dustbox-data-streams/test/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v72-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for bcrypt#3.0.6 and node#12.8.1 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/var/www/html/projects/citizen-sense-dustbox-data-streams/test/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from ../../nan/nan.h:53,
from ../src/bcrypt_node.cc:1:
../src/bcrypt_node.cc: At global scope:
/home/lau/.cache/node-gyp/12.8.1/include/node/node.h:556:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/lau/.cache/node-gyp/12.8.1/include/node/node.h:590:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/bcrypt_node.cc:378:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(bcrypt_lib, init);
^~~~~~~~~~~
In file included from /home/lau/.cache/node-gyp/12.8.1/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/bcrypt_node.cc:1:
/home/lau/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/lau/.cache/node-gyp/12.8.1/include/node/node_object_wrap.h:84:78: required from here
/home/lau/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lau/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/lau/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
COPY /var/www/html/projects/citizen-sense-dustbox-data-streams/test/node_modules/bcrypt/lib/binding/bcrypt_lib.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/var/www/html/projects/citizen-sense-dustbox-data-streams/test/node_modules/bcrypt/build'
npm notice created a lockfile as package-lock.json. You should commit this file.
+ bcrypt#3.0.6
added 68 packages from 49 contributors and audited 97 packages in 3.525s
found 0 vulnerabilities
I am on node 12.8.1:
$ node -v
v12.8.1
Any ideas what I can do?
I just got started on frontend development and followed different React tutorials which included instructions to configure the dependencies. I'm quite overwhelmed by the mass of boilerplate files which are necessary to produce a simple "Hello world!" project.Now, I'm stuck for hours with
> npm install
npm WARN lifecycle The node binary used for scripts is /snap/bin/node but npm is using /snap/node/1627/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> contextify#0.1.15 install /home/richter/mereet/mereet-frontend/node_modules/contextify
> node-gyp rebuild
make: Verzeichnis „/home/richter/mereet/mereet-frontend/node_modules/contextify/build“ wird betreten
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/contextify.cc:62:74: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
ContextifyContext* ctx = new ContextifyContext(info[0]->ToObject());
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::Run(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/contextify.cc:77:48: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<String> code = info[0]->ToString();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
Local<String> Value::ToString() const {
^~~~~
../src/contextify.cc:83:51: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
ScriptOrigin origin(info[1]->ToString());
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
Local<String> Value::ToString() const {
^~~~~
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: error: no matching function for call to ‘v8::Function::NewInstance()’
Local<Object> wrapper = Nan::New(constructor)->NewInstance();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:4105:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h:4105:44: note: candidate expects 3 arguments, 0 provided
/home/richter/.node-gyp/11.9.0/include/node/v8.h:4108:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h:4108:44: note: candidate expects 1 argument, 0 provided
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’?
otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
^~~~~~~~~~~~~~~~~~~~~~~
SetAccessCheckCallback
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:176:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> data = info.Data()->ToObject();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc:182:80: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’
Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
^~~~~~~~~~~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate expects 2 arguments, 1 provided
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertySetter(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:192:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> data = info.Data()->ToObject();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:203:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> data = info.Data()->ToObject();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc:209:67: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
^~~~~~~~~~~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate expects 2 arguments, 1 provided
../src/contextify.cc:210:71: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
^~~~~~~~~~~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3668:43: note: candidate expects 2 arguments, 1 provided
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyDeleter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&)’:
../src/contextify.cc:218:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> data = info.Data()->ToObject();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc:224:63: warning: ‘bool v8::Object::Delete(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
bool success = Nan::New(ctx->sandbox)->Delete(property);
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/v8.h:26,
from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:3442:43: note: declared here
V8_DEPRECATED("Use maybe version", bool Delete(Local<Value> key));
^~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyEnumerator(const Nan::PropertyCallbackInfo<v8::Array>&)’:
../src/contextify.cc:229:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> data = info.Data()->ToObject();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/contextify.cc:286:48: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<String> code = info[0]->ToString();
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
Local<String> Value::ToString() const {
^~~~~
../src/contextify.cc:291:52: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
? info[1]->ToString()
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
Local<String> Value::ToString() const {
^~~~~
../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::RunInContext(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/contextify.cc:319:62: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
if (!ContextifyContext::InstanceOf(info[0]->ToObject()))
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/contextify.cc:322:95: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
ContextifyContext* ctx = Nan::ObjectWrap::Unwrap<ContextifyContext>(info[0]->ToObject());
^
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
In file included from ../src/contextify.cc:1:
../src/contextify.cc: At global scope:
/home/richter/.node-gyp/11.9.0/include/node/node.h:495:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/richter/.node-gyp/11.9.0/include/node/node.h:529:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/contextify.cc:361:5: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(contextify, init)
^~~~~~~~~~~
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/richter/.node-gyp/11.9.0/include/node/node_object_wrap.h:85:78: required from here
/home/richter/.node-gyp/11.9.0/include/node/v8.h:9707:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:66:61: required from here
/home/richter/.node-gyp/11.9.0/include/node/v8.h:9707:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
In file included from ../../nan/nan.h:2718,
from ../src/contextify.cc:3:
../../nan/nan_weak.h: In instantiation of ‘Nan::WeakCallbackInfo<P>::WeakCallbackInfo(Nan::Persistent<v8::Value>*, Nan::WeakCallbackInfo<P>::Callback, void*, void*, void*) [with T = ContextWrap; Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&)]’:
../../nan/nan_weak.h:264:12: required from ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]’
../src/contextify.cc:136:132: required from here
../../nan/nan_weak.h:58:16: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class v8::Persistent<v8::Value>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/richter/.node-gyp/11.9.0/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/richter/.node-gyp/11.9.0/include/node/v8.h:784:35: note: ‘class v8::Persistent<v8::Value>’ declared here
template <class T, class M> class Persistent : public PersistentBase<T> {
^~~~~~~~~~
/home/richter/.node-gyp/11.9.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::WeakCallbackInfo<ContextWrap>; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)]’:
../../nan/nan_weak.h:268:35: required from ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]’
../src/contextify.cc:136:132: required from here
/home/richter/.node-gyp/11.9.0/include/node/v8.h:9707:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [contextify.target.mk:101: Release/obj.target/contextify/src/contextify.o] Fehler 1
make: Verzeichnis „/home/richter/mereet/mereet-frontend/node_modules/contextify/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:197:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.18.0-15-generic
gyp ERR! command "/snap/node/1627/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/richter/mereet/mereet-frontend/node_modules/contextify
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
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.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: contextify#0.1.15 (node_modules/contextify):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: contextify#0.1.15 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
audited 35891 packages in 16.281s
found 2 high severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
which I get on Ubuntu 18.10 with an up-to-date installation of NodeJS through snap as well as on the Docker image node:11-slim.
My research goes as far as figuring out that contextify is obsolete because it is already contained in NodeJS. However, I see no connection to this very obscure error.
Due to the relatively high rate of outdated code and whole projects in the "frontend world" (I have a Java backend background), I'm interested in both fixing this issue and a general approach to solving this kind of dependency problems - I fear that solving this specific case will just forward me to the next issue which has been my weekend so far getting started on frontend development.
My search for existing questions and posts outside SO yields a ton of "class ... has no member named", but I can't extract any steps to take from them.
I'm trying to install "karma" and "grunt-karma" for a project and I end up with the following npm error. I'm running MacOS Sierra v10.12.4, XCode v8.3.2 with command line tools installed, node v7.9.0, node-gyp v3.5.0.
Before pasting this here I read all the SO topics about this and also some other ones on GitHub, but nothing worked.
> bufferutil#1.1.0 install /Users/cc/project/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
../node_modules/nan/nan_new.h:34:56: warning: 'ToInt32' is deprecated
[-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:9041:21: note: 'ToInt32'
has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
../node_modules/nan/nan_new.h:39:56: warning: 'ToUint32' is deprecated
[-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:9035:22: note: 'ToUint32'
has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:49:29: warning: 'New' is
deprecated [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:4490:56: note: 'New' has
been explicitly marked deprecated here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:166:30: warning: 'Compile' is
deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1376:21: note: 'Compile'
has been explicitly marked deprecated here
Local<Script> Compile(Isolate* isolate, Source* source,
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:173:30: warning: 'Compile' is
deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1376:21: note: 'Compile'
has been explicitly marked deprecated here
Local<Script> Compile(Isolate* isolate, Source* source,
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:205:22: warning:
'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:2544:21: note:
'NewFromOneByte' has been explicitly marked deprecated here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:217:22: warning: 'NewExternal'
is deprecated [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:2582:38: note:
'NewExternal' has been explicitly marked deprecated here
Local<String> NewExternal(
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:237:30: warning:
'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1356:45: note:
'CompileUnbound' has been explicitly marked deprecated here
Local<UnboundScript> CompileUnbound(
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:244:30: warning:
'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1356:45: note:
'CompileUnbound' has been explicitly marked deprecated here
Local<UnboundScript> CompileUnbound(
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../node_modules/nan/nan.h:289:39: warning: 'IdleNotification' is deprecated
[-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:6893:22: note:
'IdleNotification' has been explicitly marked deprecated here
bool IdleNotification(int idle_time_in_ms));
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:473:20: error: no type named 'GCEpilogueCallback' in
'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:479:20: error: no type named 'GCEpilogueCallback' in
'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:484:20: error: no type named 'GCPrologueCallback' in
'v8::Isolate'
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:490:20: error: no type named 'GCPrologueCallback' in
'v8::Isolate'
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:569:15: error: no type named 'WeakCallbackData' in
namespace 'v8'
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
~~~~^
../node_modules/nan/nan.h:569:31: error: expected ')'
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../node_modules/nan/nan.h:568:41: note: to match this '('
static void _NanWeakCallbackDispatcher(
^
../node_modules/nan/nan.h:570:42: error: use of undeclared identifier 'data'
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^~~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node_buffer.h:46:40: note:
candidate function not viable: 2nd argument ('const char *') would lose
const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/cc/.node-gyp/7.9.0/include/node/node_buffer.h:34:40: note:
candidate function not viable: no known conversion from 'const char *' to
'v8::Local<v8::String>' for 2nd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/cc/.node-gyp/7.9.0/include/node/node_buffer.h:31:40: note:
candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
^
/Users/cc/.node-gyp/7.9.0/include/node/node_buffer.h:39:40: note:
candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:676:12: error: no viable conversion from returned
value of type 'v8::MaybeLocal<v8::Object>' to function return type
'v8::Local<v8::Object>'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:221:7: note: candidate
constructor (the implicit copy constructor) not viable: no known
conversion from 'v8::MaybeLocal<v8::Object>' to 'const
v8::Local<v8::Object> &' for 1st argument
class Local {
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:221:7: note: candidate
constructor (the implicit move constructor) not viable: no known
conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
for 1st argument
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:225:13: note: candidate
template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local<S> that)
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~^
../node_modules/nan/nan.h:710:32: warning: 'Compile' is deprecated
[-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1376:21: note: 'Compile'
has been explicitly marked deprecated here
Local<Script> Compile(Isolate* isolate, Source* source,
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:717:32: warning: 'Compile' is deprecated
[-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:1376:21: note: 'Compile'
has been explicitly marked deprecated here
Local<Script> Compile(Isolate* isolate, Source* source,
^
../src/bufferutil.cc:30:5: error: call to 'NODE_SET_METHOD' is ambiguous
NODE_SET_METHOD(t, "unmask", BufferUtil::Unmask);
^~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:266:25: note: expanded
from macro 'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
^~~~~~~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:241:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^
/Users/cc/.node-gyp/7.9.0/include/node/node.h:254:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^
../src/bufferutil.cc:31:5: error: call to 'NODE_SET_METHOD' is ambiguous
NODE_SET_METHOD(t, "mask", BufferUtil::Mask);
^~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:266:25: note: expanded
from macro 'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
^~~~~~~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:241:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^
/Users/cc/.node-gyp/7.9.0/include/node/node.h:254:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^
../src/bufferutil.cc:32:5: error: call to 'NODE_SET_METHOD' is ambiguous
NODE_SET_METHOD(t, "merge", BufferUtil::Merge);
^~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:266:25: note: expanded
from macro 'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
^~~~~~~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/node.h:241:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Template> recv,
^
/Users/cc/.node-gyp/7.9.0/include/node/node.h:254:13: note: candidate
function
inline void NODE_SET_METHOD(v8::Local<v8::Object> recv,
^
In file included from ../src/bufferutil.cc:7:
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:232:5: error: assigning to
'v8::Primitive *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:191:37: note: expanded from
macro 'TYPE_CHECK'
*(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template
specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:232:5: error: assigning to
'v8::Boolean *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:191:37: note: expanded from
macro 'TYPE_CHECK'
*(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template
specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:232:5: error: assigning to
'v8::Function *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:191:37: note: expanded from
macro 'TYPE_CHECK'
*(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:232:5: error: assigning to
'v8::Object *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/cc/.node-gyp/7.9.0/include/node/v8.h:191:37: note: expanded from
macro 'TYPE_CHECK'
*(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
12 warnings and 19 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/cc/project/node_modules/bufferutil
gyp ERR! node -v v7.9.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok