Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

npm install failed. #287

Open
hjianhao opened this issue May 2, 2016 · 2 comments
Open

npm install failed. #287

hjianhao opened this issue May 2, 2016 · 2 comments

Comments

@hjianhao
Copy link

hjianhao commented May 2, 2016

I run the command npm install, got the following errors :

farmhash@0.2.2 install /home/hjianhao/nodeprj/hyperbahn/node_modules/farmhash
node-gyp rebuild

make: Entering directory '/home/hjianhao/nodeprj/hyperbahn/node_modules/farmhash/build'
CXX(target) Release/obj.target/farmhash/src/upstream/farmhash.o
CXX(target) Release/obj.target/farmhash/src/bindings.o
In file included from ../../nan/nan_new.h:190:0,
from ../../nan/nan.h:74,
from ../src/bindings.cc:4:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Signature::return_t NanIntern::Factoryv8::Signature::New(NanIntern::Factoryv8::Signature::FTH, int, NanIntern::Factoryv8::Signature::FTH_)’:
../../nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate_, NanIntern::Factoryv8::Signature::FTH&, int&, NanIntern::Factoryv8::Signature::FTH_&)’
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
^
../../nan/nan_implementation_12_inl.h:181:76: note: candidate is:
In file included from /home/hjianhao/.node-gyp/6.0.0/include/node/node.h:42:0,
from ../src/bindings.cc:2:
/home/hjianhao/.node-gyp/6.0.0/include/node/v8.h:4798:27: note: static v8::Localv8::Signature v8::Signature::New(v8::Isolate_, v8::Localv8::FunctionTemplate)
static Local New(
^
/home/hjianhao/.node-gyp/6.0.0/include/node/v8.h:4798:27: note: candidate expects 2 arguments, 4 provided
In file included from ../src/bindings.cc:4:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:165:25: error: redefinition of ‘template v8::Local _NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:160:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:369:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^
../../nan/nan.h:369:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’

                ^

../../nan/nan.h:369:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’

my node.js and npm version as following.

npm ERR! Linux 3.19.0-16-generic
npm ERR! argv "/home/hjianhao/dev/node-v6.0.0-linux-x64/bin/node" "/home/hjianhao/dev/node/bin/npm" "install"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE

@hjianhao
Copy link
Author

hjianhao commented May 2, 2016

My OS : Ubuntu 15.04

@Raynos
Copy link
Contributor

Raynos commented May 3, 2016

Hyperbahn is not node6 compliant yet. It should work on node0.10 or node4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants