arunoda / node-usage

process usage lookup with nodejs
MIT License
389 stars 93 forks source link

error: ‘NewSymbol’ is not a member of ‘v8::String’ #27

Open Unitech opened 10 years ago

Unitech commented 10 years ago

Hello Arunoda,

With the latest v0.11.13 I got this error when installing node-usage (with pm2).

../src/binding.cpp: In function ‘void RegisterModule(v8::Handle<v8::Object>)’:
../src/binding.cpp:8:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../src/binding.cpp:8:77: error: no matching function for call to ‘v8::Number::New(long int)’
../src/binding.cpp:8:77: note: candidate is:
/home/tknew/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/tknew/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note:   candidate expects 2 arguments, 1 provided
../src/binding.cpp:9:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../src/binding.cpp:9:82: error: no matching function for call to ‘v8::Number::New(long int)’
../src/binding.cpp:9:82: note: candidate is:
/home/tknew/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/tknew/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note:   candidate expects 2 arguments, 1 provided
../src/binding.cpp:17:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../src/binding.cpp:17:42: error: ‘New’ is not a member of ‘v8::String’

Is it okay to replace String::NewSymbol("HERTZ") with String::New("HERTZ") ?

Thanks in advance, trying to fix the module !

arunoda commented 10 years ago

Will try this.

kof commented 10 years ago

same here, running macos 10.9.2 node 0.11.13

kof commented 10 years ago

any chance to get this fixed soon?