contextify icon indicating copy to clipboard operation
contextify copied to clipboard

On Amazon EC2 , installation of contextify fails

Open smruti-servicemax opened this issue 9 years ago • 3 comments

On Amazon EC2 , installation of contextify fails .. below is the logs...

[root@omax-dev /]# sudo npm install contextify

[email protected] install /node_modules/contextify node-gyp rebuild

make: Entering directory /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 (declared at /root/.node-gyp/7.5.0/include/node/v8.h:3292): Use maybe version [-Wdeprecated-declarations] Local<Object> wrapper = Nan::New(constructor)->NewInstance(); ^ ../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’ 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 (declared at /root/.node-gyp/7.5.0/include/node/v8.h:2948): Use maybe version [-Wdeprecated-declarations] Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property); ^ ../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 (declared at /root/.node-gyp/7.5.0/include/node/v8.h:2948): Use maybe version [-Wdeprecated-declarations] if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() || ^ ../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared at /root/.node-gyp/7.5.0/include/node/v8.h:2948): Use maybe version [-Wdeprecated-declarations] !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) { ^ make: *** [Release/obj.target/contextify/src/contextify.o] Error 1 make: Leaving directory /node_modules/contextify/build' 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:192:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.4.23-31.51.amzn1.x86_64 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 /node_modules/contextify gyp ERR! node -v v7.5.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/package.json' npm WARN !invalid#1 No description npm WARN !invalid#1 No repository field. npm WARN !invalid#1 No README data npm WARN !invalid#1 No license field. npm ERR! Linux 4.4.23-31.51.amzn1.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "contextify" npm ERR! node v7.5.0 npm ERR! npm v4.3.0 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 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the contextify package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs contextify npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls contextify npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/.npm/_logs/2017-02-17T09_44_21_769Z-debug.log

smruti-servicemax avatar Feb 17 '17 09:02 smruti-servicemax

@smruti-servicemax did you find a solution for this?

moeseth avatar Jun 04 '17 15:06 moeseth

There seems to be a lot of people facing this problem out there, including me.

$ node -v
v9.2.0
$ yarn -v
1.3.2
error /mnt/c/repos/DGuardWeb/node_modules/contextify: Command failed.
Exit code: 1al<Object> wrapper = Nan::New(constructor)->NewInstance();
Command: node-gyp rebuildv3.4.7
Arguments: extify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’
Directory: /mnt/c/repos/DGuardWeb/node_modules/contextifyedAccessCheck,
Output:         ^
gyp info it worked if it ends with okr function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallb
gyp info using [email protected]
gyp info using [email protected] | linux | x64v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared a
gyp info spawn /usr/bin/python2nclude/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',                                            ^
gyp info spawn args   '-f',atic member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallba
gyp info spawn args   'make',
gyp info spawn args   '-I',: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared a
gyp info spawn args   '/mnt/c/repos/DGuardWeb/node_modules/contextify/build/config.gypi',clarations]
gyp info spawn args   '-I',>sandbox)->GetRealNamedProperty(property).IsEmpty() ||
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared a
gyp info spawn args   '/home/verde/.node-gyp/9.2.0/include/node/common.gypi',eprecated-declarations]
gyp info spawn args   '-Dlibrary=shared_library',NamedProperty(property).IsEmpty()) {
gyp info spawn args   '-Dvisibility=default',                          ^
gyp info spawn args   '-Dnode_root_dir=/home/verde/.node-gyp/9.2.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/verde/.node-gyp/9.2.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/mnt/c/repos/DGuardWeb/node_modules/contextify',p/lib/build.js:258:23)
gyp info spawn args   '-Dnode_engine=v8',events.js:159:13)
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',ft
gyp info spawn args   '--generator-output',node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp info spawn args   'build',rdWeb/node_modules/contextify
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entrando no diretório `/mnt/c/repos/DGuardWeb/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 (declared at /home/verde/.node-gyp/9.2.0/include/node/v8.h:3848): Use maybe version [-Wdeprecated-declarations]
         Local<Object> wrapper = Nan::New(constructor)->NewInstance();
                                                                    ^
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’
         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 (declared at /home/verde/.node-gyp/9.2.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
         Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
                                                                                ^
../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 (declared at /home/verde/.node-gyp/9.2.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
         if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
                                                                   ^
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared at /home/verde/.node-gyp/9.2.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
             !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
                                                                       ^
make: ** [Release/obj.target/contextify/src/contextify.o] Erro 1
make: Saindo do diretório `/mnt/c/repos/DGuardWeb/node_modules/contextify/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:159:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.4.0-43-Microsoft
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/c/repos/DGuardWeb/node_modules/contextify




brunofin avatar Jan 19 '18 10:01 brunofin

This module won't work on node 9. Are you sure you need to use Contextify? Are you installing it yourself, or is it being pulled in from somewhere?

More info: https://github.com/brianmcd/contextify/issues/205#issuecomment-327787986

brianmcd avatar Jan 19 '18 17:01 brianmcd