shaneMangudi / bcrypt-nodejs

Native implementation of bcrypt for NodeJS
Other
574 stars 69 forks source link

RHEL6 wont compile no c++11 available #62

Closed eperry closed 5 years ago

eperry commented 8 years ago

I was wondering if there was any options. I am installing an applicatoin that lists bcrypt as a module and it will not build on RHEL6.0 which I need to keep as this is older hardware.

here is the output of the build ` npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade

bcrypt@0.8.6 install /home/elkadmin/semaphore/node_modules/bcrypt node-gyp rebuild

make: Entering directory /home/elkadmin/semaphore/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 ../src/bcrypt_node.cc:1: ../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler In file included from /home/elkadmin/.node-gyp/4.4.3/include/node/node.h:42, from ../node_modules/nan/nan.h:45, from ../src/bcrypt_node.cc:1: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:336: error: expected unqualified-id before ‘using’ /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: At global scope: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:469: error: expected unqualified-id before ‘using’ /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: At global scope: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:852: error: expected unqualified-id before ‘using’ /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:7164: error: ‘nullptr’ was not declared in this scope In file included from ../node_modules/nan/nan.h:194, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_maybe_43_inl.h: At global scope: ../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’ ../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’ ../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token ../node_modules/nan/nan_maybe_43_inl.h:223: error: expected initializer before ‘<’ token In file included from ../node_modules/nan/nan.h:199, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../node_modules/nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type ../node_modules/nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan_converters.h:26: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:27: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:28: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:29: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:30: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:31: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:32: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:42: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:43: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:44: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:45: error: ‘return_t’ does not name a type ../node_modules/nan/nan_converters.h:46: error: ‘return_t’ does not name a type In file included from ../node_modules/nan/nan_converters.h:59, from ../node_modules/nan/nan.h:199, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type ../node_modules/nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type In file included from ../node_modules/nan/nan.h:200, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’: ../node_modules/nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’: ../node_modules/nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’: ../node_modules/nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../node_modules/nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan_new.h:75: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:141: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:147: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:148: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:160: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:161: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:162: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:163: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:165: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:166: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:182: error: ‘return_t’ does not name a type ../node_modules/nan/nan_new.h:183: error: ‘return_t’ does not name a type In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:200, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’: ../node_modules/nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’: ../node_modules/nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ 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:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type ../node_modules/nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type In file included from ../node_modules/nan/nan.h:200, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../node_modules/nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type In file included from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’: ../node_modules/nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::ThrowError(const char*)’: ../node_modules/nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’: ../node_modules/nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’: ../node_modules/nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’: ../node_modules/nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’: ../node_modules/nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’: ../node_modules/nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’: ../node_modules/nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’: ../node_modules/nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’: ../node_modules/nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:671: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:693: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:709: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:722: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:739: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:745: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:753: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:760: error: expected initializer before ‘<’ token ../node_modules/nan/nan.h:766: error: expected initializer before ‘<’ token /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’: /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’ ../node_modules/nan/nan.h:1402: error: in call to ‘Set’ ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’: ../node_modules/nan/nan.h:1522: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’: ../node_modules/nan/nan.h:1540: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’: ../node_modules/nan/nan.h:1574: error: no matching function for call to ‘New(const char*)’ ../node_modules/nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../node_modules/nan/nan.h:1857: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available ../node_modules/nan/nan.h:1857: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../node_modules/nan/nan.h:1858: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../node_modules/nan/nan.h:1870: error: ‘GetFunction’ was not declared in this scope ../node_modules/nan/nan.h:1871: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’: ../node_modules/nan/nan.h:1896: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’: ../node_modules/nan/nan.h:1939: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:1987: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:2057: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:2112: error: ‘NewInstance’ was not declared in this scope ../node_modules/nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:2134: error: ‘NewInstance’ was not declared in this scope In file included from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../node_modules/nan/nan.h:2161: error: no matching function for call to ‘New(const char*&)’ ../node_modules/nan/nan.h:2162: error: ‘GetFunction’ was not declared in this scope /home/elkadmin/.node-gyp/4.4.3/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’ ../node_modules/nan/nan.h:2162: error: in call to ‘Set’ ../node_modules/nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’: ../node_modules/nan/nan.h:2169: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’ ../node_modules/nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’: ../node_modules/nan/nan.h:2182: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’: ../node_modules/nan/nan.h:2188: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:2212: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../node_modules/nan/nan.h:2212: error: expected ‘;’ before ‘<’ token ../node_modules/nan/nan.h:2215: error: expected ‘;’ before ‘}’ token ../node_modules/nan/nan.h:2217: error: ‘MaybeLocal’ was not declared in this scope ../node_modules/nan/nan.h:2217: error: template argument 1 is invalid ../node_modules/nan/nan.h:2217: error: expected unqualified-id before ‘>’ token ../node_modules/nan/nan.h:2226: error: expected constructor, destructor, or type conversion before ‘<’ token ../src/bcrypt_node.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE<unnamed>::GenerateSalt(const Nan::FunctionCallbackInfo<v8::Value>&)’: ../src/bcrypt_node.cc:108: error: no matching function for call to ‘To(v8::Local<v8::Value>)’ ../src/bcrypt_node.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE<unnamed>::GenerateSaltSync(const Nan::FunctionCallbackInfo<v8::Value>&)’: ../src/bcrypt_node.cc:131: error: no matching function for call to ‘To(v8::Local<v8::Value>)’ make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1 make: Leaving directory/home/elkadmin/semaphore/node_modules/bcrypt/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/elkadmin/node-v4.4.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276: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-573.el6.x86_64 gyp ERR! command "/home/elkadmin/node-v4.4.3-linux-x64/bin/node" "/home/elkadmin/node-v4.4.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/elkadmin/semaphore/node_modules/bcrypt gyp ERR! node -v v4.4.3 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm ERR! Linux 2.6.32-573.el6.x86_64 npm ERR! argv "/home/elkadmin/node-v4.4.3-linux-x64/bin/node" "/home/elkadmin/node/bin/npm" "install" npm ERR! node v4.4.3 npm ERR! npm v2.15.1 npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.6 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@0.8.6 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the bcrypt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs bcrypt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls bcrypt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/elkadmin/semaphore/npm-debug.log `

jhiver commented 8 years ago

Same here with the default vagrant/precise64 image.

npm WARN package.json apiv4@1.0.0 No description npm WARN package.json apiv4@1.0.0 No README data

bcrypt@0.8.7 install /home/vagrant/apiv4/node_modules/bcrypt node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: Entering directory /home/vagrant/apiv4/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 ../src/bcrypt_node.cc:1:0: ../node_modules/nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler In file included from /home/vagrant/.node-gyp/4.4.5/include/node/node.h:42:0, from ../node_modules/nan/nan.h:47, from ../src/bcrypt_node.cc:1: /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:336:1: error: expected unqualified-id before 'using' /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:469:1: error: expected unqualified-id before 'using' /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:852:1: error: expected unqualified-id before 'using' In file included from ../node_modules/nan/nan.h:190:0, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:19:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:24:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:31:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:36:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:41:1: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:46:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:51:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:59:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:64:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:69:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:76:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:83:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:91:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:98:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:108:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:114:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:118:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:125:1: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:130:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:135:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:139:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:145:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:150:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:156:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:162:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:168:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:174:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:180:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:186:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:194:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:201:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:205:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:209:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:213:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:217:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:237:8: error: 'MaybeLocal' does not name a type In file included from ../node_modules/nan/nan.h:195:0, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_converters.h:16:56: error: 'Maybe' does not name a type ../node_modules/nan/nan_converters.h:26:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:27:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:28:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:29:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:30:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:31:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:32:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:42:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:43:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:44:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:45:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:46:1: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_converters.h:59:0, from ../node_modules/nan/nan.h:195, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_converters_43_inl.h:18:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:19:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:20:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:21:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:34:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:35:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:36:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:37:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:38:1: error: 'return_t' in 'struct Nan::imp::ToFactory<int>' does not name a type In file included from ../node_modules/nan/nan.h:196:0, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]': ../node_modules/nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:21:32: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]': ../node_modules/nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:28:30: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]': ../node_modules/nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:35:31: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_new.h:75:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:141:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:147:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:148:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:160:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:161:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:162:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:163:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:165:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:166:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:182:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:183:17: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:196, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_implementation_12_inl.h:61:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan_implementation_12_inl.h:95:46: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)': ../node_modules/nan/nan_implementation_12_inl.h:123:48: error: 'NewInstance' 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:202:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:221:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:227:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:259:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:267:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:273:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:280:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:286:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:291:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:352:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:359:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type In file included from ../node_modules/nan/nan.h:196:0, from ../src/bcrypt_node.cc:1: ../node_modules/nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:335:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type In file included from ../src/bcrypt_node.cc:1:0: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)': ../node_modules/nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowError(const char*)': ../node_modules/nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)': ../node_modules/nan/nan.h:656:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)': ../node_modules/nan/nan.h:656:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)': ../node_modules/nan/nan.h:657:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)': ../node_modules/nan/nan.h:657:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)': ../node_modules/nan/nan.h:658:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)': ../node_modules/nan/nan.h:658:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)': ../node_modules/nan/nan.h:659:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)': ../node_modules/nan/nan.h:659:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:667:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:689:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:705:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:718:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:735:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:741:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:749:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:756:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:762:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h: In member function 'void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)': ../node_modules/nan/nan.h:1398:40: error: 'Set' was not declared in this scope ../node_modules/nan/nan.h:1398:40: note: suggested alternative: /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:3021:17: note: 'v8::Set' ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)': ../node_modules/nan/nan.h:1518:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const': ../node_modules/nan/nan.h:1536:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()': ../node_modules/nan/nan.h:1570:58: error: no matching function for call to 'New(const char*)' ../node_modules/nan/nan.h:1570:58: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../node_modules/nan/nan.h: In function 'void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)': ../node_modules/nan/nan.h:1872:34: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive] ../node_modules/nan/nan.h:1872:34: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../node_modules/nan/nan.h: In function 'void Nan::SetMethod(HandleType<T>, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:1884:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:1899:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)': ../node_modules/nan/nan.h:1924:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)': ../node_modules/nan/nan.h:1967:51: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2026:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2096:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2151:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2173:47: error: 'NewInstance' was not declared in this scope In file included from ../src/bcrypt_node.cc:1:0: ../node_modules/nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:2200:35: error: no matching function for call to 'New(const char*&)' ../node_modules/nan/nan.h:2200:35: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:405:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../node_modules/nan/nan.h:2201:47: error: 'GetFunction' was not declared in this scope ../node_modules/nan/nan.h:2201:65: error: 'Set' was not declared in this scope ../node_modules/nan/nan.h:2201:65: note: suggested alternative: /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:3021:17: note: 'v8::Set' ../node_modules/nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2208:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)' ../node_modules/nan/nan.h:2208:30: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)': ../node_modules/nan/nan.h:2221:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'void Nan::Tap::pass(const char*)': ../node_modules/nan/nan.h:2227:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:2251:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:2256:40: error: 'MaybeLocal' was not declared in this scope ../node_modules/nan/nan.h:2256:40: note: suggested alternative: /home/vagrant/.node-gyp/4.4.5/include/node/v8.h:111:7: note: 'v8::MaybeLocal' ../node_modules/nan/nan.h:2256:52: error: template argument 1 is invalid ../node_modules/nan/nan.h:2256:54: error: expected unqualified-id before '>' token ../node_modules/nan/nan.h:2265:1: error: 'MaybeLocal' does not name a type ../src/bcrypt_node.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE {anonymous}::GenerateSalt(Nan::NAN_METHOD_ARGS_TYPE)': ../src/bcrypt_node.cc:108:52: error: no matching function for call to 'To(v8::Local<v8::Value>)' ../src/bcrypt_node.cc:108:52: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../src/bcrypt_node.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE {anonymous}::GenerateSaltSync(Nan::NAN_METHOD_ARGS_TYPE)': ../src/bcrypt_node.cc:131:52: error: no matching function for call to 'To(v8::Local<v8::Value>)' ../src/bcrypt_node.cc:131:52: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)': ../node_modules/nan/nan.h:655:3: warning: control reaches end of non-void function [-Wreturn-type] ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]': ../node_modules/nan/nan_new.h:36:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1 make: Leaving directory/home/vagrant/apiv4/node_modules/bcrypt/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/vagrant/.nvm/versions/node/v4.4.5/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276: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 3.2.0-23-generic gyp ERR! command "/home/vagrant/.nvm/versions/node/v4.4.5/bin/node" "/home/vagrant/.nvm/versions/node/v4.4.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/vagrant/apiv4/node_modules/bcrypt gyp ERR! node -v v4.4.5 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm ERR! Linux 3.2.0-23-generic npm ERR! argv "/home/vagrant/.nvm/versions/node/v4.4.5/bin/node" "/home/vagrant/.nvm/versions/node/v4.4.5/bin/npm" "install" npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.7 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@0.8.7 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the bcrypt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs bcrypt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls bcrypt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/vagrant/apiv4/npm-debug.log

antony commented 8 years ago

Wrong library - you want to raise your bug against natively compiled bcrypt, here: https://github.com/ncb000gt/node.bcrypt.js