You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
stacktrace:
> [email protected] install /Volumes/MacHDD2/Projects/MusiXmatch/tools/node-java/node_modules/java
> node-gyp rebuild
CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o
In file included from ../src/java.cpp:1:
In file included from ../src/java.h:9:
In file included from ../../nan/nan.h:182:
../../nan/nan_maybe_43_inl.h:221:17: warning: 'CloneElementAt' is deprecated [-Wdeprecated-declarations]
return array->CloneElementAt(GetCurrentContext(), index);
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:3032:36: note: 'CloneElementAt' has been explicitly marked deprecated here
MaybeLocal<Object> CloneElementAt(Local<Context> context,
^
In file included from ../src/java.cpp:1:
In file included from ../src/java.h:9:
In file included from ../../nan/nan.h:188:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:40:29: warning: 'New' is deprecated [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:4007: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/java.cpp:1:
In file included from ../src/java.h:9:
../../nan/nan.h:590:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:596:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:601:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:607:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:1927:15: warning: 'SetAccessor' is deprecated [-Wdeprecated-declarations]
return obj->SetAccessor(
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:2751:22: note: 'SetAccessor' has been explicitly marked deprecated here
bool SetAccessor(Local<Name> name,
^
../src/java.cpp:883:40: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:913:40: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:942:40: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:969:42: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:1005:40: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:1030:40: warning: 'ToNumber' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::Number> val = info[0]->ToNumber();
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
Local<Number> Value::ToNumber() const {
^
../src/java.cpp:1249:16: warning: 'TryCatch' is deprecated [-Wdeprecated-declarations]
v8::TryCatch tryCatch;
^
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:6771:40: note: 'TryCatch' has been explicitly marked deprecated here
V8_DEPRECATED("Use isolate version", TryCatch());
^
10 warnings and 4 errors generated.
make: *** [Release/obj.target/nodejavabridge_bindings/src/java.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:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.1.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 /Volumes/MacHDD2/Projects/MusiXmatch/tools/node-java/node_modules/java
gyp ERR! node -v v6.9.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN [email protected] No license field.
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
The text was updated successfully, but these errors were encountered:
Try installing a newer version of the addon, it's probably depending on an older version of nan that does not support the version of node you are using.
@mscdex thanks, so this native module node-java, that it is at its latest version: joeferner/node-java#368
It seems to me that it is related to the node-gyp or not?:
/Users/loretoparisi/.node-gyp/6.9.2/include/node/v8.h:8166:22: note: 'ToNumber' has been explicitly marked deprecated here
With node LTS 6.9.2, Java
stacktrace:
The text was updated successfully, but these errors were encountered: