c++ - Node-gyp build and rebuild error on centos -


getting below error when trying build node-gyp build

node-gyp build gyp info worked if ends ok gyp info using node-gyp@1.0.2 gyp info using node@0.10.35 | linux | x64 gyp info spawn make gyp info spawn args [ 'buildtype=release', '-c', 'build' ] make: entering directory /root/node-latest-install/build'
cxx(target) release/obj.target/binding/binding.o ../binding.cc:5: error: iso c++ forbids declaration of ‘functioncallbackinfo’ no type ../binding.cc:5: error: expected ‘,’ or ‘...’ before ‘<’ token ../binding.cc: in function ‘void add(int)’: ../binding.cc:7: error: no matching function call ‘v8::handlescope::handlescope(v8::isolate
*&)’ /root/.node-gyp/0.10.35/deps/v8/include/v8.h:473: note: candidates are: v8::handlescope::handlesco
pe(const v8::handlescope&) /root/.node-gyp/0.10.35/deps/v8/include/v8.h:448: note:
v8::handlescope::handlesco pe() ../binding.cc:9: error: ‘args’ not declared in scope ../binding.cc:10: error: ‘class v8::isolate’ has no member named ‘throwexception’ ../binding.cc:11: error: ‘newfromutf8’ not member of ‘v8::string’ ../binding.cc:15: error: ‘args’ not declared in scope ../binding.cc:16: error: ‘class v8::isolate’ has no member named ‘throwexception’ ../binding.cc:17: error: ‘newfromutf8’ not member of ‘v8::string’ ../binding.cc:21: error: ‘args’ not declared in scope ../binding.cc:22: error: no matching function call ‘v8::number::new(v8::isolate*&, double&) ’ /root/.node-gyp/0.10.35/deps/v8/include/v8.h:1381: note: candidates are: static v8::local<v8::numb er> v8::number::new(double) ../binding.cc: in function ‘void init(v8::handle<v8::object>)’: ../binding.cc:28: error: no matching function call ‘setmethod(v8::handle<v8::object>&, cons
t char [4], void (&)(int))’ make: *** [release/obj.target/binding/binding.o] error 1 make: leaving directory
/root/node-latest-install/build' gyp err! build error gyp err! stack error: make failed exit code: 2 gyp err! stack @ childprocess.onexit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:2
3) gyp err! stack @ childprocess.emit (events.js:98:17) gyp err! stack @ process.childprocess._handle.onexit (child_process.js:820:12) gyp err! system linux 2.6.32-504.3.3.el6.x86_64 gyp err! command "node" "/usr/local/bin/node-gyp" "build" gyp err! cwd /root/node-latest-install gyp err! node -v v0.10.35 gyp err! node-gyp -v v1.0.2 gyp err! not ok


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -