nodeclub-master源码安装依赖问题
发布于 9 年前 作者 BigBird0 5589 次浏览 最后一次编辑是 8 年前 来自 问答

我的环境 操作系统 64位 RHEL6.4 mongodb 2.6.8 Redis 2.8.19 node.js 4.2.1 io.js 没装 遇到的问题 make install 安装依赖报错,我仔细看了下,两类问题,一类是bcrypt的,一大堆编译出错的信息,一类是有些依赖安装卡住一下午,进行不下去了。错误信息如下

[root@localhost nodeclub-master]# make install WARN engine xmlbuilder@2.5.0: wanted: {“node”:“0.8.x || 0.10.x || 0.11.x || 1.0.x”} (current: {“node”:“4.2.4”,“npm”:“2.14.12”})

bcrypt@0.8.4 install /usr/local/src/nodeclub-master/node_modules/bcrypt node-gyp rebuild

gyp WARN EACCES user “root” does not have permission to access the dev dir "/root/.node-gyp/4.2.4" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp" make[1]: Entering directory /usr/local/src/nodeclub-master/node_modules/bcrypt/build' CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o In file included from /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/node.h:42, from ../node_modules/nan/nan.h:24, from ../src/bcrypt_node.cc:1: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:336: error: expected unqualified-id before ‘using’ /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: At global scope: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:469: error: expected unqualified-id before ‘using’ /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: At global scope: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:852: error: expected unqualified-id before ‘using’ /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’: /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/v8.h:7164: error: ‘nullptr’ was not declared in this scope In file included from ../node_modules/nan/nan.h:82, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:24: error: template declaration of ‘v8::Local<T> NanIntern::To’ ../node_modules/nan/nan_new.h:24: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_new.h:24: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_new.h:24: error: ‘i’ was not declared in this scope ../node_modules/nan/nan_new.h:29: error: expected initializer before ‘<’ token ../node_modules/nan/nan_new.h:34: error: expected initializer before ‘<’ token ../node_modules/nan/nan_new.h:39: error: expected initializer before ‘<’ token ../node_modules/nan/nan_new.h:66: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:66: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h:65: error: default argument missing for parameter 2 of ‘static v8::Local<v8::Context> NanIntern::Factory<v8::Context>::New(v8::ExtensionConfiguration*, int)’ ../node_modules/nan/nan_new.h:85: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:85: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h:93: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:93: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h:92: error: default argument missing for parameter 2 of ‘static v8::Local<v8::FunctionTemplate> NanIntern::Factory<v8::FunctionTemplate>::New(void (*)(const v8::FunctionCallbackInfo<v8::Value>&), int)’ ../node_modules/nan/nan_new.h:139: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:139: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h:151: error: ISO C++ forbids declaration of ‘Handle’ with no type ../node_modules/nan/nan_new.h:151: error: typedef name may not be a nested-name-specifier ../node_modules/nan/nan_new.h:151: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan_new.h:152: error: ‘FTH’ has not been declared ../node_modules/nan/nan_new.h:152: error: ‘FTH’ was not declared in this scope ../node_modules/nan/nan_new.h:171: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:171: error: expected ‘,’ or ‘...’ before ‘<’ token In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:82, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_implementation_12_inl.h:56: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_implementation_12_inl.h:56: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Context> NanIntern::Factory<v8::Context>::New(v8::ExtensionConfiguration*, int)’: ../node_modules/nan/nan_implementation_12_inl.h:58: error: ‘tmpl’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:58: error: ‘obj’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: At global scope: ../node_modules/nan/nan_implementation_12_inl.h:79: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_implementation_12_inl.h:79: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> NanIntern::Factory<v8::Function>::New(void (*)(const v8::FunctionCallbackInfo<v8::Value>&), int)’: ../node_modules/nan/nan_implementation_12_inl.h:82: error: ‘data’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: At global scope: ../node_modules/nan/nan_implementation_12_inl.h:89: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_implementation_12_inl.h:89: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> NanIntern::Factory<v8::FunctionTemplate>::New(void (*)(const v8::FunctionCallbackInfo<v8::Value>&), int)’: ../node_modules/nan/nan_implementation_12_inl.h:93: error: ‘data’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:94: error: ‘signature’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static typename NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(int32_t)’: ../node_modules/nan/nan_implementation_12_inl.h:117: error: ‘To’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:117: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static typename NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(uint32_t)’: ../node_modules/nan/nan_implementation_12_inl.h:123: error: ‘To’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:123: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Uint32> NanIntern::Factory<v8::Uint32>::New(int32_t)’: ../node_modules/nan/nan_implementation_12_inl.h:128: error: ‘To’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:128: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Uint32> NanIntern::Factory<v8::Uint32>::New(uint32_t)’: ../node_modules/nan/nan_implementation_12_inl.h:134: error: ‘To’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:134: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h: At global scope: ../node_modules/nan/nan_implementation_12_inl.h:156: error: ‘v8::Local<v8::RegExp> NanIntern::Factory<v8::RegExp>::New’ is not a static member of ‘struct NanIntern::Factory<v8::RegExp>’ ../node_modules/nan/nan_implementation_12_inl.h:156: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_implementation_12_inl.h:156: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h:156: error: ‘pattern’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:157: error: expected primary-expression before ‘flags’ ../node_modules/nan/nan_implementation_12_inl.h:157: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan_implementation_12_inl.h:179: error: ‘v8::Local<v8::Signature> NanIntern::Factory<v8::Signature>::New’ is not a static member of ‘struct NanIntern::Factory<v8::Signature>’ ../node_modules/nan/nan_implementation_12_inl.h:179: error: ‘FTH’ is not a member of ‘NanIntern::Factory<v8::Signature>’ ../node_modules/nan/nan_implementation_12_inl.h:179: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan_implementation_12_inl.h:228: error: ‘v8::Local<v8::StringObject> NanIntern::Factory<v8::StringObject>::New’ is not a static member of ‘struct NanIntern::Factory<v8::StringObject>’ ../node_modules/nan/nan_implementation_12_inl.h:228: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_implementation_12_inl.h:228: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h:228: error: ‘value’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h:228: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan_implementation_12_inl.h:252: error: ‘NanNew’ declared as an ‘inline’ variable ../node_modules/nan/nan_implementation_12_inl.h:252: error: template declaration of ‘v8::Local<T> NanNew’ ../node_modules/nan/nan_implementation_12_inl.h:252: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_implementation_12_inl.h:252: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_implementation_12_inl.h:252: error: ‘h’ was not declared in this scope In file included from ../node_modules/nan/nan.h:82, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h:238: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:238: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h: In function ‘typename NanIntern::Factory<T>::return_t NanNew(void (*)(const v8::FunctionCallbackInfo<v8::Value>&), int)’: ../node_modules/nan/nan_new.h:239: error: ‘data’ was not declared in this scope ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:246: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan_new.h:246: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan_new.h: In function ‘typename NanIntern::Factory<T>::return_t NanNew(void (*)(const v8::FunctionCallbackInfo<v8::Value>&), int)’: ../node_modules/nan/nan_new.h:248: error: ‘data’ was not declared in this scope ../node_modules/nan/nan_new.h:248: error: ‘a2’ was not declared in this scope ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:253: error: ‘NanNew’ declared as an ‘inline’ variable ../node_modules/nan/nan_new.h:253: error: template declaration of ‘v8::Local<T> NanNew’ ../node_modules/nan/nan_new.h:253: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_new.h:253: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_new.h:253: error: ‘h’ was not declared in this scope ../node_modules/nan/nan_new.h:324: error: ‘NanNew’ declared as an ‘inline’ variable ../node_modules/nan/nan_new.h:324: error: ‘v8::Local<v8::RegExp> NanNew’ redeclared as different kind of symbol ../node_modules/nan/nan_new.h:318: error: previous declaration of ‘v8::Local<v8::String> NanNew(NanExternalOneByteStringResource*)’ ../node_modules/nan/nan_new.h:324: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan_new.h:324: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan_new.h:324: error: ‘pattern’ was not declared in this scope ../node_modules/nan/nan_new.h:324: error: expected primary-expression before ‘flags’ In file included from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan.h:220: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:220: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘bool NanBooleanOptionValue(v8::Local<v8::Object>, int)’: ../node_modules/nan/nan.h:222: error: ‘def’ was not declared in this scope ../node_modules/nan/nan.h:224: error: ‘opt’ was not declared in this scope ../node_modules/nan/nan.h:228: error: ‘opt’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:235: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:235: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘bool NanBooleanOptionValue(v8::Local<v8::Object>, int)’: ../node_modules/nan/nan.h:233: error: redefinition of ‘bool NanBooleanOptionValue(v8::Local<v8::Object>, int)’ ../node_modules/nan/nan.h:218: error: ‘bool NanBooleanOptionValue(v8::Local<v8::Object>, int)’ previously defined here ../node_modules/nan/nan.h:237: error: ‘opt’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:242: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:242: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘uint32_t NanUInt32OptionValue(v8::Local<v8::Object>, int)’: ../node_modules/nan/nan.h:246: error: ‘opt’ was not declared in this scope ../node_modules/nan/nan.h:249: error: ‘def’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:253: error: template declaration of ‘v8::Local<T> NanNew’ ../node_modules/nan/nan.h:253: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:253: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:253: error: expected primary-expression before ‘)’ token ../node_modules/nan/nan.h:256: error: ‘_NanEnsureLocal’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:256: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:256: error: template declaration of ‘v8::Local<T> _NanEnsureLocal’ ../node_modules/nan/nan.h:256: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:256: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:256: error: ‘val’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Primitive> NanUndefined()’: ../node_modules/nan/nan.h:414: error: no matching function for call to ‘NanNew(v8::Local<v8::Primitive>)’ ../node_modules/nan/nan_new.h:258: note: candidates are: v8::Local<v8::Boolean> NanNew(bool) ../node_modules/nan/nan_new.h:264: note: v8::Local<v8::Int32> NanNew(int32_t) ../node_modules/nan/nan_new.h:270: note: v8::Local<v8::Uint32> NanNew(uint32_t) ../node_modules/nan/nan_new.h:276: note: v8::Local<v8::Number> NanNew(double) ../node_modules/nan/nan_new.h:282: note: v8::Local<v8::String> NanNew(const std::string&) ../node_modules/nan/nan_new.h:288: note: v8::Local<v8::String> NanNew(const char*, int) ../node_modules/nan/nan_new.h:294: note: v8::Local<v8::String> NanNew(const char*) ../node_modules/nan/nan_new.h:300: note: v8::Local<v8::String> NanNew(const uint8_t*) ../node_modules/nan/nan_new.h:306: note: v8::Local<v8::String> NanNew(const uint16_t*) ../node_modules/nan/nan_new.h:312: note: v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*) ../node_modules/nan/nan_new.h:318: note: v8::Local<v8::String> NanNew(NanExternalOneByteStringResource*) ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Primitive> NanNull()’: ../node_modules/nan/nan.h:419: error: no matching function for call to ‘NanNew(v8::Local<v8::Primitive>)’ ../node_modules/nan/nan_new.h:258: note: candidates are: v8::Local<v8::Boolean> NanNew(bool) ../node_modules/nan/nan_new.h:264: note: v8::Local<v8::Int32> NanNew(int32_t) ../node_modules/nan/nan_new.h:270: note: v8::Local<v8::Uint32> NanNew(uint32_t) ../node_modules/nan/nan_new.h:276: note: v8::Local<v8::Number> NanNew(double) ../node_modules/nan/nan_new.h:282: note: v8::Local<v8::String> NanNew(const std::string&) ../node_modules/nan/nan_new.h:288: note: v8::Local<v8::String> NanNew(const char*, int) ../node_modules/nan/nan_new.h:294: note: v8::Local<v8::String> NanNew(const char*) ../node_modules/nan/nan_new.h:300: note: v8::Local<v8::String> NanNew(const uint8_t*) ../node_modules/nan/nan_new.h:306: note: v8::Local<v8::String> NanNew(const uint16_t*) ../node_modules/nan/nan_new.h:312: note: v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*) ../node_modules/nan/nan_new.h:318: note: v8::Local<v8::String> NanNew(NanExternalOneByteStringResource*) ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Boolean> NanTrue()’: ../node_modules/nan/nan.h:424: error: no matching function for call to ‘NanNew(v8::Local<v8::Boolean>)’ ../node_modules/nan/nan_new.h:258: note: candidates are: v8::Local<v8::Boolean> NanNew(bool) ../node_modules/nan/nan_new.h:264: note: v8::Local<v8::Int32> NanNew(int32_t) ../node_modules/nan/nan_new.h:270: note: v8::Local<v8::Uint32> NanNew(uint32_t) ../node_modules/nan/nan_new.h:276: note: v8::Local<v8::Number> NanNew(double) ../node_modules/nan/nan_new.h:282: note: v8::Local<v8::String> NanNew(const std::string&) ../node_modules/nan/nan_new.h:288: note: v8::Local<v8::String> NanNew(const char*, int) ../node_modules/nan/nan_new.h:294: note: v8::Local<v8::String> NanNew(const char*) ../node_modules/nan/nan_new.h:300: note: v8::Local<v8::String> NanNew(const uint8_t*) ../node_modules/nan/nan_new.h:306: note: v8::Local<v8::String> NanNew(const uint16_t*) ../node_modules/nan/nan_new.h:312: note: v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*) ../node_modules/nan/nan_new.h:318: note: v8::Local<v8::String> NanNew(NanExternalOneByteStringResource*) ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Boolean> NanFalse()’: ../node_modules/nan/nan.h:429: error: no matching function for call to ‘NanNew(v8::Local<v8::Boolean>)’ ../node_modules/nan/nan_new.h:258: note: candidates are: v8::Local<v8::Boolean> NanNew(bool) ../node_modules/nan/nan_new.h:264: note: v8::Local<v8::Int32> NanNew(int32_t) ../node_modules/nan/nan_new.h:270: note: v8::Local<v8::Uint32> NanNew(uint32_t) ../node_modules/nan/nan_new.h:276: note: v8::Local<v8::Number> NanNew(double) ../node_modules/nan/nan_new.h:282: note: v8::Local<v8::String> NanNew(const std::string&) ../node_modules/nan/nan_new.h:288: note: v8::Local<v8::String> NanNew(const char*, int) ../node_modules/nan/nan_new.h:294: note: v8::Local<v8::String> NanNew(const char*) ../node_modules/nan/nan_new.h:300: note: v8::Local<v8::String> NanNew(const uint8_t*) ../node_modules/nan/nan_new.h:306: note: v8::Local<v8::String> NanNew(const uint16_t*) ../node_modules/nan/nan_new.h:312: note: v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*) ../node_modules/nan/nan_new.h:318: note: v8::Local<v8::String> NanNew(NanExternalOneByteStringResource*) ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:438: error: variable or field ‘NanSetTemplate’ declared void ../node_modules/nan/nan.h:438: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:438: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:438: error: ‘templ’ was not declared in this scope ../node_modules/nan/nan.h:439: error: expected primary-expression before ‘const’ ../node_modules/nan/nan.h:440: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:440: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:440: error: ‘value’ was not declared in this scope ../node_modules/nan/nan.h:445: error: variable or field ‘NanSetTemplate’ declared void ../node_modules/nan/nan.h:445: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:445: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:445: error: ‘templ’ was not declared in this scope ../node_modules/nan/nan.h:446: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:446: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:446: error: ‘name’ was not declared in this scope ../node_modules/nan/nan.h:447: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:447: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:447: error: ‘value’ was not declared in this scope ../node_modules/nan/nan.h:448: error: expected primary-expression before ‘attributes’ ../node_modules/nan/nan.h:457: error: ‘NanGetInternalFieldPointer’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:457: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:457: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:457: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:457: error: ‘object’ was not declared in this scope ../node_modules/nan/nan.h:458: error: expected primary-expression before ‘int’ ../node_modules/nan/nan.h:458: error: initializer expression list treated as compound expression ../node_modules/nan/nan.h:458: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan.h:463: error: variable or field ‘NanSetInternalFieldPointer’ declared void ../node_modules/nan/nan.h:463: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:463: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:463: error: ‘object’ was not declared in this scope ../node_modules/nan/nan.h:464: error: expected primary-expression before ‘int’ ../node_modules/nan/nan.h:465: error: expected primary-expression before ‘void’ ../node_modules/nan/nan.h:507: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:507: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’: ../node_modules/nan/nan.h:508: error: ‘obj’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:524: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:585: error: ‘NanMakeWeakPersistent’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:585: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:585: error: template declaration of ‘_NanWeakCallbackInfo<T, P>* NanMakeWeakPersistent’ ../node_modules/nan/nan.h:585: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:585: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:585: error: ‘handle’ was not declared in this scope ../node_modules/nan/nan.h:586: error: expected primary-expression before ‘*’ token ../node_modules/nan/nan.h:586: error: ‘parameter’ was not declared in this scope ../node_modules/nan/nan.h:587: error: expected ‘(’ before ‘callback’ ../node_modules/nan/nan.h:614: error: variable or field ‘NanThrowError’ declared void ../node_modules/nan/nan.h:614: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:614: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:614: error: ‘error’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘void NanThrowError(const char*, int)’: ../node_modules/nan/nan.h:633: error: no matching function for call to ‘NanThrowError(v8::Local<v8::Value>)’ ../node_modules/nan/nan.h:610: note: candidates are: void NanThrowError(const char*) ../node_modules/nan/nan.h:629: note: void NanThrowError(const char*, int) ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:661: error: ‘node::smalloc’ has not been declared ../node_modules/nan/nan.h:661: error: expected ‘,’ or ‘...’ before ‘callback’ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665: error: ‘callback’ was not declared in this scope ../node_modules/nan/nan.h:665: error: ‘hint’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’: ../node_modules/nan/nan.h:672: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/node_buffer.h:31: note: candidates are: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match> /usr/local/src/nodeclub-master/node_modules/bcrypt/.node-gyp/4.2.4/include/node/node_buffer.h:43: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match> ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676: error: conversion from ‘v8::MaybeLocal<v8::Object>’ to non-scalar type ‘v8::Local<v8::Object>’ requested ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:683: error: ‘Use’ is not a member of ‘node::Buffer’ ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:688: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:688: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘bool NanHasInstance(const v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >&, int)’: ../node_modules/nan/nan.h:690: error: ‘value’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:695: error: ‘v8::Handle’ has not been declared ../node_modules/nan/nan.h:695: error: expected ‘,’ or ‘...’ before ‘<’ token ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Context> NanNewContextHandle(v8::ExtensionConfiguration*, int)’: ../node_modules/nan/nan.h:693: error: default argument missing for parameter 2 of ‘v8::Local<v8::Context> NanNewContextHandle(v8::ExtensionConfiguration*, int)’ ../node_modules/nan/nan.h:701: error: ‘tmpl’ was not declared in this scope ../node_modules/nan/nan.h:701: error: ‘obj’ was not declared in this scope ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:721: error: ‘NanRunScript’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:721: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:721: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:721: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:721: error: ‘script’ was not declared in this scope ../node_modules/nan/nan.h:722: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan.h:727: error: ‘NanRunScript’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:727: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:727: error: redefinition of ‘v8::Local<v8::Value> NanRunScript’ ../node_modules/nan/nan.h:721: error: ‘v8::Local<v8::Value> NanRunScript’ previously declared here ../node_modules/nan/nan.h:727: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:727: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:727: error: ‘script’ was not declared in this scope ../node_modules/nan/nan.h:733: error: ‘NanMakeCallback’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:733: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:733: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:733: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:733: error: ‘target’ was not declared in this scope ../node_modules/nan/nan.h:734: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:734: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:734: error: ‘func’ was not declared in this scope ../node_modules/nan/nan.h:735: error: expected primary-expression before ‘int’ ../node_modules/nan/nan.h:736: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:736: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:736: error: ‘argv’ was not declared in this scope ../node_modules/nan/nan.h:736: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan.h:742: error: ‘NanMakeCallback’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:742: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:742: error: redefinition of ‘v8::Local<v8::Value> NanMakeCallback’ ../node_modules/nan/nan.h:733: error: ‘v8::Local<v8::Value> NanMakeCallback’ previously declared here ../node_modules/nan/nan.h:742: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:742: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:742: error: ‘target’ was not declared in this scope ../node_modules/nan/nan.h:743: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:743: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:743: error: ‘symbol’ was not declared in this scope ../node_modules/nan/nan.h:744: error: expected primary-expression before ‘int’ ../node_modules/nan/nan.h:745: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:745: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:745: error: ‘argv’ was not declared in this scope ../node_modules/nan/nan.h:751: error: ‘NanMakeCallback’ declared as an ‘inline’ variable ../node_modules/nan/nan.h:751: warning: ‘always_inline’ attribute ignored ../node_modules/nan/nan.h:751: error: redefinition of ‘v8::Local<v8::Value> NanMakeCallback’ ../node_modules/nan/nan.h:733: error: ‘v8::Local<v8::Value> NanMakeCallback’ previously declared here ../node_modules/nan/nan.h:751: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:751: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:751: error: ‘target’ was not declared in this scope ../node_modules/nan/nan.h:752: error: expected primary-expression before ‘const’ ../node_modules/nan/nan.h:753: error: expected primary-expression before ‘int’ ../node_modules/nan/nan.h:754: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:754: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:754: error: ‘argv’ was not declared in this scope ../node_modules/nan/nan.h:776: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:810: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:843: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:1484: error: expected unqualified-id before ‘<’ token ../node_modules/nan/nan.h:1484: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:1484: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:1491: error: expected ‘;’ before ‘~’ token ../node_modules/nan/nan.h:1507: error: expected unqualified-id before ‘<’ token ../node_modules/nan/nan.h:1507: error: expected ‘)’ before ‘<’ token ../node_modules/nan/nan.h:1507: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:1512: error: expected ‘;’ before ‘inline’ ../node_modules/nan/nan.h:1523: error: ISO C++ forbids declaration of ‘Handle’ with no type ../node_modules/nan/nan.h:1523: error: invalid use of ‘::’ ../node_modules/nan/nan.h:1523: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:1535: error: expected ‘;’ before ‘inline’ ../node_modules/nan/nan.h:1535: error: ISO C++ forbids declaration of ‘Handle’ with no type ../node_modules/nan/nan.h:1535: error: invalid use of ‘::’ ../node_modules/nan/nan.h:1535: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:1545: error: expected ‘;’ before ‘private’ ../node_modules/nan/nan.h:1550: error: ISO C++ forbids declaration of ‘Handle’ with no type ../node_modules/nan/nan.h:1550: error: invalid use of ‘::’ ../node_modules/nan/nan.h:1550: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:1588: error: expected ‘;’ before ‘}’ token ../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback()’: ../node_modules/nan/nan.h:1481: error: no matching function for call to ‘NanAssignPersistent(v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >&, v8::Local<v8::Object>&)’ ../node_modules/nan/nan.h: In constructor ‘NanAsyncWorker::NanAsyncWorker(NanCallback*)’: ../node_modules/nan/nan.h:1598: error: no matching function for call to ‘NanAssignPersistent(v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >&, v8::Local<v8::Object>&)’ ../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleOKCallback()’: ../node_modules/nan/nan.h:1648: error: ‘class NanCallback’ has no member named ‘Call’ ../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’: ../node_modules/nan/nan.h:1657: error: ‘class NanCallback’ has no member named ‘Call’ ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:1957: error: ‘Handle’ is not a member of ‘v8’ ../node_modules/nan/nan.h:1957: error: expected primary-expression before ‘>’ token ../node_modules/nan/nan.h:1957: error: ‘val’ was not declared in this scope ../node_modules/nan/nan.h:1958: error: expected primary-expression before ‘const’ ../node_modules/nan/nan.h:1959: error: expected primary-expression before ‘*’ token ../node_modules/nan/nan.h:1959: error: ‘len’ was not declared in this scope ../node_modules/nan/nan.h:1960: error: initializer expression list treated as compound expression ../node_modules/nan/nan.h:1960: error: expected ‘,’ or ‘;’ before ‘{’ token ../node_modules/nan/nan.h:1957: warning: ‘_NanGetExternalParts’ defined but not used make[1]: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1 make[1]: Leaving directory/usr/local/src/nodeclub-master/node_modules/bcrypt/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/src/node-v4.2.4-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 2.6.32-358.el6.x86_64 command “/usr/local/src/node-v4.2.4-linux-x64/bin/node” “/usr/local/src/node-v4.2.4-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild" gyp ERR! cwd /usr/local/src/nodeclub-master/node_modules/bcrypt gyp ERR! node -v v4.2.4 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at F (/usr/local/src/node-v4.2.4-linux-x64/lib/node_modules/npm/node_modules/which/which.js:78:19) npm WARN addRemoteGit at E (/usr/local/src/node-v4.2.4-linux-x64/lib/node_modules/npm/node_modules/which/which.js:82:29) npm WARN addRemoteGit at /usr/local/src/node-v4.2.4-linux-x64/lib/node_modules/npm/node_modules/which/which.js:93:16 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) npm WARN addRemoteGit git+http://ikt.pm2.io/ikt.git#master resetting remote /root/.npm/_git-remotes/http-ikt-pm2-io-ikt-git-4d23bf0d because of error: { [Error: not found: git] code: ‘ENOGIT’ } npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror http://ikt.pm2.io/ikt.git /root/.npm/_git-remotes/http-ikt-pm2-io-ikt-git-4d23bf0d: undefined npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror http://ikt.pm2.io/ikt.git /root/.npm/_git-remotes/http-ikt-pm2-io-ikt-git-4d23bf0d: undefined npm WARN optional dep failed, continuing ikt@git+http://ikt.pm2.io/ikt.git#master npm WARN optional dep failed, continuing fsevents@1.0.6

kerberos@0.0.3 install /usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos (node-gyp rebuild 2> builderror.log) || (exit 0)

make[1]: Entering directory /usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build' SOLINK_MODULE(target) Release/obj.target/kerberos.node COPY Release/kerberos.node make[1]: Leaving directory/usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build’

bson@0.2.5 install /usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson (node-gyp rebuild 2> builderror.log) || (exit 0)

make[1]: Entering directory /usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o make[1]: Leaving directory/usr/local/src/nodeclub-master/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build’

bson-ext@0.1.13 install /usr/local/src/nodeclub-master/node_modules/mongoose/node_modules/bson/node_modules/bson-ext (node-gyp rebuild 2> builderror.log) || (exit 0)

[install] Interrupt ##卡太久了,我停止了

1 回复

已解决了,把node.js 4.2.1 换成node.js 0.12.x 和 io.js 2.3.3 就好了

回到顶部