Open Goldeneum opened 6 years ago
Finally find the solution :) just for who face the same problem.. its about the node version (the pool will note work with newer versions of node), so, install nvm, then used to switch between nodejs version, type nvm install 0.10 to install & use the node -v 0.10 required to start the init.js.
It is solved? When not, use node -v.0.10.48 or v.0.10.25
Build from source!
Please after install do this:
redis-cli flushall (ATTENTION - kills the DB!) exit
in pool-folder
rm -r node_modules npm update
Please be carefull with your data. You will destroy all with this prompts... Or safe data first to your harddisk.
after npm update run the pool with
node init.js
can you please help with this error? when start init.js : Error: Cannot find module 'multi-hashing'
when trying to install multi-hashing (npm install multi-hashing), npm show me this error: Failed at the multi-hashing@0.0.9 install script !
env: ubuntu 16.04 node v8.9.4 npm 5.6.0
npm install multi-hashing:
CXX(target) Release/obj.target/multihashing/multihashing.o ../multihashing.cc: In function ‘v8::Handle except(const char)’:
../multihashing.cc:34:44: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New(msg)));
^
../multihashing.cc:34:61: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New(msg)));
^
../multihashing.cc: At global scope:
../multihashing.cc:37:27: error: ‘Arguments’ does not name a type
Handle quark(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle quark(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:38:17: error: within this context
HandleScope scope;
^
../multihashing.cc:40:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:43:34: error: invalid types ‘const int[int]’ for array subscript
Local ’ token
Buffer buff = Buffer::New(output, 32);
^
../multihashing.cc:55:13: error: ‘buff’ was not declared in this scope
Buffer buff = Buffer::New(output, 32);
^
../multihashing.cc:55:42: error: no matching function for call to ‘New(char [32], int)’
Buffer buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate, v8::Local, node::encoding)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t, node::Buffer::FreeCallback, void)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/root/.node-gyp/8.9.4/include/node/nodebuffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:56:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle);
^
../multihashing.cc: At global scope:
../multihashing.cc:59:25: error: ‘Arguments’ does not name a type
Handle x11(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle x11(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:60:17: error: within this context
HandleScope scope;
^
../multihashing.cc:62:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:65:34: error: invalid types ‘const int[int]’ for array subscript
Local
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-02-07T15_36_37_453Z-debug.log