Open naueramant opened 8 years ago
I haven't tested nwm on node 6 yet. You might try cloning the repo directly, upgrading nan
to a more recent version (npm install --save nan@latest
) and then doing npm install -g
in the repo. If that doesn't work, a few small src/nwm/nwm.cc
edits might be needed to get it work with the latest nan. Happy to accept a PR if that works, otherwise I'll look into it when I have chance... which is probably a bit later.
@mixu, updating nan to latest version helped.
i'm have a same problem, but "nan" not helped me.
Yarn version: 1.5.1
Node version: 8.9.4
Platform: linux x64
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/lucas/apps/hermes/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> wrapper = Nan::New(constructor)->NewInstance();
^
In file included from /home/lucas/.node-gyp/8.9.4/include/node/v8.h:26:0,
from /home/lucas/.node-gyp/8.9.4/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/lucas/.node-gyp/8.9.4/include/node/v8.h:3836:52: note: declared here
V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
^
/home/lucas/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’?
otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
^~~~~~~~~~~~~~~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:182:80: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
^
In file included from /home/lucas/.node-gyp/8.9.4/include/node/v8.h:26:0,
from /home/lucas/.node-gyp/8.9.4/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/lucas/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
Local<Value> GetRealNamedProperty(Local<String> key));
^
/home/lucas/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:209:67: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
^
In file included from /home/lucas/.node-gyp/8.9.4/include/node/v8.h:26:0,
from /home/lucas/.node-gyp/8.9.4/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/lucas/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
Local<Value> GetRealNamedProperty(Local<String> key));
^
/home/lucas/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
^
In file included from /home/lucas/.node-gyp/8.9.4/include/node/v8.h:26:0,
from /home/lucas/.node-gyp/8.9.4/include/node/node.h:63,
from ../src/contextify.cc:1:
/home/lucas/.node-gyp/8.9.4/include/node/v8.h:3389:30: note: declared here
Local<Value> GetRealNamedProperty(Local<String> key));
^
/home/lucas/.node-gyp/8.9.4/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
contextify.target.mk:95: recipe for target 'Release/obj.target/contextify/src/contextify.o' failed
make: Leaving directory '/home/lucas/apps/hermes/node_modules/contextify/build'
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/lucas/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.0-deepin2-amd64
gyp ERR! command "/home/lucas/.nvm/versions/node/v8.9.4/bin/node" "/home/lucas/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/lucas/apps/hermes/node_modules/contextify
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
at ProcessTermError.MessageError (/usr/share/yarn/lib/cli.js:186:110)
at new ProcessTermError (/usr/share/yarn/lib/cli.js:226:113)
at ChildProcess.<anonymous> (/usr/share/yarn/lib/cli.js:30281:17)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
My npm install fails with the following error
Platform: Arch Linux