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") ?
Hello Arunoda,
With the latest v0.11.13 I got this error when installing node-usage (with pm2).
Is it okay to replace
String::NewSymbol("HERTZ")
withString::New("HERTZ")
?Thanks in advance, trying to fix the module !