Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install errors with node v4 and v5 #776

Closed
superclarkk opened this Issue Nov 19, 2015 · 14 comments

Comments

Projects
None yet
@superclarkk
Copy link

superclarkk commented Nov 19, 2015

Environment

Ubuntu 12.04 with 3.2.0-91-generic
node v4.2.2 and v5.1.0
npm 3.4.0
python 2.7.3
gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4

Log

> bufferutil@1.2.1 install /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from ../src/bufferutil.cc:7:0:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:852:1: error: expected unqualified-id before 'using'
In file included from ../../nan/nan.h:194:0,
                 from ../src/bufferutil.cc:16:
../../nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:19:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:24:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:31:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:36:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:41:1: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:46:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:51:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:60:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:65:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:70:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:77:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:84:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:92:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:99:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:109:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:115:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:119:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:126:1: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:131:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:136:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:140:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:146:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:151:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:157:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:163:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:169:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:175:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:181:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:187:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:195:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:202:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:206:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:210:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:214:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:218:12: error: 'MaybeLocal' does not name a type
In file included from ../../nan/nan.h:199:0,
                 from ../src/bufferutil.cc:16:
../../nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type
../../nan/nan_converters.h:16:56: error: 'Maybe' does not name a type
../../nan/nan_converters.h:26:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:27:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:28:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:29:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:30:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:31:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:32:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:42:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:43:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:44:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:45:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:46:1: error: 'return_t' does not name a type
In file included from ../../nan/nan_converters.h:59:0,
                 from ../../nan/nan.h:199,
                 from ../src/bufferutil.cc:16:
../../nan/nan_converters_43_inl.h:18:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type
../../nan/nan_converters_43_inl.h:19:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type
../../nan/nan_converters_43_inl.h:20:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type
../../nan/nan_converters_43_inl.h:21:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type
../../nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type
../../nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type
../../nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type
../../nan/nan_converters_43_inl.h:34:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type
../../nan/nan_converters_43_inl.h:35:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type
../../nan/nan_converters_43_inl.h:36:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long int>' does not name a type
../../nan/nan_converters_43_inl.h:37:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type
../../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 ../../nan/nan.h:200:0,
                 from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]':
../../nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:21:32: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
../../nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:28:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]':
../../nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:35:31: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: At global scope:
../../nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type
../../nan/nan_new.h:75:17: error: 'return_t' does not name a type
../../nan/nan_new.h:141:17: error: 'return_t' does not name a type
../../nan/nan_new.h:147:17: error: 'return_t' does not name a type
../../nan/nan_new.h:148:17: error: 'return_t' does not name a type
../../nan/nan_new.h:160:17: error: 'return_t' does not name a type
../../nan/nan_new.h:161:17: error: 'return_t' does not name a type
../../nan/nan_new.h:162:17: error: 'return_t' does not name a type
../../nan/nan_new.h:163:17: error: 'return_t' does not name a type
../../nan/nan_new.h:165:17: error: 'return_t' does not name a type
../../nan/nan_new.h:166:17: error: 'return_t' does not name a type
../../nan/nan_new.h:182:17: error: 'return_t' does not name a type
../../nan/nan_new.h:183:17: error: 'return_t' does not name a type
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:200,
                 from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:56:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type
../../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>)':
../../nan/nan_implementation_12_inl.h:90:46: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan_implementation_12_inl.h:118:48: error: 'NewInstance' was not declared in this scope
../../nan/nan_implementation_12_inl.h: At global scope:
../../nan/nan_implementation_12_inl.h:197:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
../../nan/nan_implementation_12_inl.h:216:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../../nan/nan_implementation_12_inl.h:222:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../../nan/nan_implementation_12_inl.h:254:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:262:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:268:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:275:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:281:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:286:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:347:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
../../nan/nan_implementation_12_inl.h:354:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
In file included from ../../nan/nan.h:200:0,
                 from ../src/bufferutil.cc:16:
../../nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../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/bufferutil.cc:16:0:
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)':
../../nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowError(const char*)':
../../nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)':
../../nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)':
../../nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)':
../../nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)':
../../nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)':
../../nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)':
../../nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)':
../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)':
../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: At global scope:
../../nan/nan.h:663:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:685:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:701:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:714:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:731:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:737:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:745:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:752:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:758:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h: In member function 'void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)':
../../nan/nan.h:1394:40: error: 'Set' was not declared in this scope
../../nan/nan.h:1394:40: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
../../nan/nan.h:1516:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
../../nan/nan.h:1534:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()':
../../nan/nan.h:1568:58: error: no matching function for call to 'New(const char*)'
../../nan/nan.h:1568:58: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../../nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback)':
../../nan/nan.h:1857:16: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive]
../../nan/nan.h:1857:16: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../nan/nan.h:1858:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)':
../../nan/nan.h:1870:32: error: 'GetFunction' was not declared in this scope
../../nan/nan.h:1871:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../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)':
../../nan/nan.h:1896:47: error: 'NewInstance' was not declared in this scope
../../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)':
../../nan/nan.h:1939:51: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan.h:1987:47: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan.h:2057:47: error: 'NewInstance' was not declared in this scope
../../nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../../nan/nan.h:2112:47: error: 'NewInstance' was not declared in this scope
../../nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../../nan/nan.h:2134:47: error: 'NewInstance' was not declared in this scope
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)':
../../nan/nan.h:2161:35: error: no matching function for call to 'New(const char*&)'
../../nan/nan.h:2161:35: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../../nan/nan.h:2162:47: error: 'GetFunction' was not declared in this scope
../../nan/nan.h:2162:65: error: 'Set' was not declared in this scope
../../nan/nan.h:2162:65: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../../nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)':
../../nan/nan.h:2169:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)'
../../nan/nan.h:2169:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)':
../../nan/nan.h:2182:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'void Nan::Tap::pass(const char*)':
../../nan/nan.h:2188:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: At global scope:
../../nan/nan.h:2212:10: error: 'MaybeLocal' does not name a type
../../nan/nan.h:2217:40: error: 'MaybeLocal' was not declared in this scope
../../nan/nan.h:2217:40: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:111:7: note:   'v8::MaybeLocal'
../../nan/nan.h:2217:52: error: template argument 1 is invalid
../../nan/nan.h:2217:54: error: expected unqualified-id before '>' token
../../nan/nan.h:2226:1: error: 'MaybeLocal' does not name a type
../src/bufferutil.cc:25:30: error: 'v8::Handle' has not been declared
../src/bufferutil.cc:25:36: error: expected ',' or '...' before '<' token
../src/bufferutil.cc: In static member function 'static void BufferUtil::Initialize(int)':
../src/bufferutil.cc:33:5: error: 'Set' is not a member of 'Nan'
../src/bufferutil.cc:33:5: note: suggested alternatives:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../src/bufferutil.cc:33:14: error: 'target' was not declared in this scope
../src/bufferutil.cc:33:51: error: no matching function for call to 'New(const char [11])'
../src/bufferutil.cc:33:51: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../src/bufferutil.cc: At global scope:
../src/bufferutil.cc:114:12: error: variable or field 'init' declared void
../src/bufferutil.cc:114:12: error: 'Handle' was not declared in this scope
../src/bufferutil.cc:114:25: error: expected primary-expression before '>' token
../src/bufferutil.cc:114:27: error: 'target' was not declared in this scope
../src/bufferutil.cc:120:1: error: 'init' was not declared in this scope
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback) [with T = v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback = void (*)(const Nan::FunctionCallbackInfo<v8::Value>&)]':
../src/bufferutil.cc:30:51:   instantiated from here
../../nan/nan.h:1857:33: error: 'GetFunction' was not declared in this scope
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory `/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/bufferutil/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/path/to/nodejs/nvm/versions/node/v4.2.2/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 3.2.0-91-generic
gyp ERR! command "/home/path/to/nodejs/nvm/versions/node/v4.2.2/bin/node" "/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.2.1 Exit status 1

> utf-8-validate@1.2.1 install /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:0:
../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from ../src/validation.cc:7:0:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:852:1: error: expected unqualified-id before 'using'
In file included from ../../nan/nan.h:194:0,
                 from ../src/validation.cc:15:
../../nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:19:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:24:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:31:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:36:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:41:1: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:46:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:51:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:60:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:65:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:70:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:77:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:84:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:92:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:99:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:109:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:115:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:119:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:126:1: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:131:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:136:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:140:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:146:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:151:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:157:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:163:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:169:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:175:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:181:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:187:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:195:12: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:202:1: error: 'MaybeLocal' does not name a type
../../nan/nan_maybe_43_inl.h:206:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:210:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:214:12: error: 'Maybe' does not name a type
../../nan/nan_maybe_43_inl.h:218:12: error: 'MaybeLocal' does not name a type
In file included from ../../nan/nan.h:199:0,
                 from ../src/validation.cc:15:
../../nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type
../../nan/nan_converters.h:16:56: error: 'Maybe' does not name a type
../../nan/nan_converters.h:26:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:27:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:28:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:29:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:30:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:31:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:32:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:42:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:43:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:44:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:45:1: error: 'return_t' does not name a type
../../nan/nan_converters.h:46:1: error: 'return_t' does not name a type
In file included from ../../nan/nan_converters.h:59:0,
                 from ../../nan/nan.h:199,
                 from ../src/validation.cc:15:
../../nan/nan_converters_43_inl.h:18:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type
../../nan/nan_converters_43_inl.h:19:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type
../../nan/nan_converters_43_inl.h:20:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type
../../nan/nan_converters_43_inl.h:21:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type
../../nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type
../../nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type
../../nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type
../../nan/nan_converters_43_inl.h:34:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type
../../nan/nan_converters_43_inl.h:35:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type
../../nan/nan_converters_43_inl.h:36:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long int>' does not name a type
../../nan/nan_converters_43_inl.h:37:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type
../../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 ../../nan/nan.h:200:0,
                 from ../src/validation.cc:15:
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]':
../../nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:21:32: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
../../nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:28:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]':
../../nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../../nan/nan_new.h:35:31: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: At global scope:
../../nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type
../../nan/nan_new.h:75:17: error: 'return_t' does not name a type
../../nan/nan_new.h:141:17: error: 'return_t' does not name a type
../../nan/nan_new.h:147:17: error: 'return_t' does not name a type
../../nan/nan_new.h:148:17: error: 'return_t' does not name a type
../../nan/nan_new.h:160:17: error: 'return_t' does not name a type
../../nan/nan_new.h:161:17: error: 'return_t' does not name a type
../../nan/nan_new.h:162:17: error: 'return_t' does not name a type
../../nan/nan_new.h:163:17: error: 'return_t' does not name a type
../../nan/nan_new.h:165:17: error: 'return_t' does not name a type
../../nan/nan_new.h:166:17: error: 'return_t' does not name a type
../../nan/nan_new.h:182:17: error: 'return_t' does not name a type
../../nan/nan_new.h:183:17: error: 'return_t' does not name a type
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:200,
                 from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:56:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type
../../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>)':
../../nan/nan_implementation_12_inl.h:90:46: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan_implementation_12_inl.h:118:48: error: 'NewInstance' was not declared in this scope
../../nan/nan_implementation_12_inl.h: At global scope:
../../nan/nan_implementation_12_inl.h:197:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
../../nan/nan_implementation_12_inl.h:216:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../../nan/nan_implementation_12_inl.h:222:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../../nan/nan_implementation_12_inl.h:254:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:262:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:268:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:275:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:281:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:286:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_implementation_12_inl.h:347:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
../../nan/nan_implementation_12_inl.h:354:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
In file included from ../../nan/nan.h:200:0,
                 from ../src/validation.cc:15:
../../nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../../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/validation.cc:15:0:
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)':
../../nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowError(const char*)':
../../nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)':
../../nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)':
../../nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)':
../../nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)':
../../nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)':
../../nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)':
../../nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)':
../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)':
../../nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: At global scope:
../../nan/nan.h:663:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:685:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:701:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:714:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:731:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:737:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:745:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:752:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h:758:14: error: 'MaybeLocal' does not name a type
../../nan/nan.h: In member function 'void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)':
../../nan/nan.h:1394:40: error: 'Set' was not declared in this scope
../../nan/nan.h:1394:40: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../../nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
../../nan/nan.h:1516:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
../../nan/nan.h:1534:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()':
../../nan/nan.h:1568:58: error: no matching function for call to 'New(const char*)'
../../nan/nan.h:1568:58: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../../nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback)':
../../nan/nan.h:1857:16: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive]
../../nan/nan.h:1857:16: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../nan/nan.h:1858:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)':
../../nan/nan.h:1870:32: error: 'GetFunction' was not declared in this scope
../../nan/nan.h:1871:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../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)':
../../nan/nan.h:1896:47: error: 'NewInstance' was not declared in this scope
../../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)':
../../nan/nan.h:1939:51: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan.h:1987:47: error: 'NewInstance' was not declared in this scope
../../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>)':
../../nan/nan.h:2057:47: error: 'NewInstance' was not declared in this scope
../../nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../../nan/nan.h:2112:47: error: 'NewInstance' was not declared in this scope
../../nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../../nan/nan.h:2134:47: error: 'NewInstance' was not declared in this scope
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)':
../../nan/nan.h:2161:35: error: no matching function for call to 'New(const char*&)'
../../nan/nan.h:2161:35: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../../nan/nan.h:2162:47: error: 'GetFunction' was not declared in this scope
../../nan/nan.h:2162:65: error: 'Set' was not declared in this scope
../../nan/nan.h:2162:65: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../../nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)':
../../nan/nan.h:2169:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)'
../../nan/nan.h:2169:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)':
../../nan/nan.h:2182:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: In member function 'void Nan::Tap::pass(const char*)':
../../nan/nan.h:2188:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../../nan/nan.h: At global scope:
../../nan/nan.h:2212:10: error: 'MaybeLocal' does not name a type
../../nan/nan.h:2217:40: error: 'MaybeLocal' was not declared in this scope
../../nan/nan.h:2217:40: note: suggested alternative:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:111:7: note:   'v8::MaybeLocal'
../../nan/nan.h:2217:52: error: template argument 1 is invalid
../../nan/nan.h:2217:54: error: expected unqualified-id before '>' token
../../nan/nan.h:2226:1: error: 'MaybeLocal' does not name a type
../src/validation.cc:107:30: error: 'v8::Handle' has not been declared
../src/validation.cc:107:36: error: expected ',' or '...' before '<' token
../src/validation.cc: In static member function 'static void Validation::Initialize(int)':
../src/validation.cc:113:5: error: 'Set' is not a member of 'Nan'
../src/validation.cc:113:5: note: suggested alternatives:
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
/home/myuser/.node-gyp/4.2.2/include/node/v8.h:3021:17: note:   'v8::Set'
../src/validation.cc:113:14: error: 'target' was not declared in this scope
../src/validation.cc:113:51: error: no matching function for call to 'New(const char [11])'
../src/validation.cc:113:51: note: candidates are:
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../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)
../../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)
../../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)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../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)
../src/validation.cc: At global scope:
../src/validation.cc:141:12: error: variable or field 'init' declared void
../src/validation.cc:141:12: error: 'Handle' was not declared in this scope
../src/validation.cc:141:25: error: expected primary-expression before '>' token
../src/validation.cc:141:27: error: 'target' was not declared in this scope
../src/validation.cc:147:1: error: 'init' was not declared in this scope
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback) [with T = v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback = void (*)(const Nan::FunctionCallbackInfo<v8::Value>&)]':
../src/validation.cc:112:61:   instantiated from here
../../nan/nan.h:1857:33: error: 'GetFunction' was not declared in this scope
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory `/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/utf-8-validate/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/path/to/nodejs/nvm/versions/node/v4.2.2/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 3.2.0-91-generic
gyp ERR! command "/home/path/to/nodejs/nvm/versions/node/v4.2.2/bin/node" "/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/utf-8-validate
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:utf-8-validate@1.2.1 utf-8-validate@1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.1 Exit status 1

> v8-debug@0.5.4 install /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

[v8-debug] Success: "/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.5.4/node-v46-linux-x64/debug.node" is installed via remote

> v8-profiler@5.3.2 install /home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build

[v8-profiler] Success: "/home/path/to/nodejs/nvm/versions/node/v4.2.2/lib/node_modules/node-inspector/node_modules/v8-profiler/build/profiler/v5.3.2/node-v46-linux-x64/profiler.node" is installed via remote
@xekoukou

This comment has been minimized.

Copy link

xekoukou commented Nov 20, 2015

I can confirm this as well.

@superclarkk

This comment has been minimized.

Copy link
Author

superclarkk commented Nov 20, 2015

@xekoukou - could you give details of your environment?

@xekoukou

This comment has been minimized.

Copy link

xekoukou commented Nov 20, 2015

OS: Debian Jessie 3.16.7-ckt11-1
node: All versions from v3 to v5. I didn't check all but I had to revert to version 0.12.x for it to work.
python 2.7.9
gcc 4.9.2

@tehOPEologist

This comment has been minimized.

Copy link

tehOPEologist commented Nov 23, 2015

i'm also having issues installing with latest version of node (5.1.0) on windows 10. same error(s)

@fiznool

This comment has been minimized.

Copy link

fiznool commented Dec 1, 2015

../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler

You need a version of g++ that supports the C++11 features.

Try upgrading your gcc and g++ compilers and try again.

@3y3

This comment has been minimized.

Copy link
Member

3y3 commented Dec 6, 2015

As @fiznool says this is a problem with C++ compiler in subpackages.
Anyway node-inspector installs successfully in this case.
Please retarget this issue to package there it happens.

@3y3 3y3 closed this Dec 6, 2015

@superclarkk

This comment has been minimized.

Copy link
Author

superclarkk commented Dec 7, 2015

For Ubuntu 12.04, I resolved it as follows:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --config gcc (choose gcc-5 from the list)

Check that the correct versions of gcc and g++ are being used by default by running gcc -v; g++ -v

@mfdeveloper

This comment has been minimized.

Copy link

mfdeveloper commented Feb 18, 2016

Maaaany thnks @superclarkk !! This solution about g++ and gccversion 5 works for me!! About this, v8-debug and v8-profiler were installed :)

+1

@shuzhang1989

This comment has been minimized.

Copy link

shuzhang1989 commented Mar 6, 2016

awesome work!

@kalahari

This comment has been minimized.

Copy link

kalahari commented Mar 8, 2016

Thank you @superclarkk! I was seeing this issue on Travis-CI, so I had to update your formula slightly to make it non-interactive. From my .travis.yml:

before_install:
  - sudo apt-get install python-software-properties
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update
  - sudo apt-get install gcc-5 g++-5
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
  - sudo update-alternatives --set gcc /usr/bin/gcc-5

brookman added a commit to joachimprinzbach/ng2-camp-OLD that referenced this issue Apr 23, 2016

@lentus

This comment has been minimized.

Copy link

lentus commented May 31, 2016

Sorry to bring this up again, but I am getting the same error on CentOS 6, using node v6 and gcc/g++ v5.2.1 Is it necessary to update to 5.3.1, or could there be something else wrong?

@ronenm

This comment has been minimized.

Copy link

ronenm commented Jun 5, 2016

@Re0h, I upgraded to gcc 5.4.0 on CentOS 6 (had version 4) and it still fails.

@lentus

This comment has been minimized.

Copy link

lentus commented Jun 5, 2016

@ronenm @Re0h Apparently, this error does not necessarily mean that the npm installation failed as a whole. As long as npm ends it report with a list of installed dependencies, you are good to go. I was at least, my project runs just fine after I fixed an error totally unrelated to this one.

@arjunkori

This comment has been minimized.

Copy link

arjunkori commented Aug 3, 2016

i have the same issue.

beldougie added a commit to beldougie/generative-art that referenced this issue Sep 4, 2016

beldougie added a commit to beldougie/generative-art that referenced this issue Sep 10, 2016

[WIP] 0.0.1
* update README with credits
* adding basic travis-ci config file
* fix typo
* implement mocha test runner
* Add commitment to ES6
* adding canvas dependencies
* updating travis build script
* updating travis
* Update .travis.yml
   see node-inspector/node-inspector#776 (comment)
* Update .travis.yml
   silence `apt-get update`
* Update .travis.yml
   Add dependencies for `node canvas`
* Update README.md
   Adding build status badge from Travis
* Update .travis.yml
   add install step
* restructuring slightly
* adding test and babel for es6 parsing
* removed babel in favour of typescript
* converting to typescript
* script hooks
* fixed typo
* changing path to see if fixes test failure remotely
* remove pointless preinstall script
* another attempt at specifying the test files
* updated to latest version of node
* adding post install script to run `typings install`
* remove `iojs` build
* Restructure (#10)
* removing typescript - just not going to work on this project
* [WIP] converting to native JS
* running and tests passing with no trace of typescript
* oops - wrong package version
* Feature/#1 initial class content (#11)
* updating unit tests
* introduce node-canvas
* adding jshint ocnfig
* updated the BaseGenerator with a lot of the basic code
  (modified from the SolidGrey example
* Feature/extract to decorators (#12)
* extracted the creation process to a Decorator class
* Refactored into the 'Solid' class
* created an Abstract decorator to handle common properties/functions
* add unit test for AbstractDecorator
* reworked unit tests
* unit tests passing
* Create Demo App (#13)
* basic express added in `demo` folder
* drawing an image on the screen, but it doesn't contain any data yet...
* got something drawing on screen using promises for async handling
* tweaked constants and ensured reject would be called on error
* demo app working with default solid and variable solid pages :)
* amend image info
* improve unit testing
* [WIP] create package entry point (#14)
* add the start of a central library of exports
* make the demo a package in its own right
   So we can add dependencies properly
* moved the demo requirements to the correct package
   and sorted out the horrible formatting
* reorganised the package.json file
* adding start script to demo

beldougie added a commit to beldougie/generative-art that referenced this issue Sep 10, 2016

Pre-Release 0.0.1 (#18)
* update README with credits
* adding basic travis-ci config file
* fix typo
* implement mocha test runner
* Add commitment to ES6
* adding canvas dependencies
* updating travis build script
* updating travis
* Update .travis.yml
  see node-inspector/node-inspector#776 (comment)
* Update .travis.yml
  silence `apt-get update`
* Update .travis.yml
  Add dependencies for `node canvas`
* Update README.md
  Adding build status badge from Travis
* Update .travis.yml
  add install step
* restructuring slightly
* adding test and babel for es6 parsing
* removed babel in favour of typescript
* converting to typescript
* script hooks
* fixed typo
* changing path to see if fixes test failure remotely
* remove pointless preinstall script
* another attempt at specifying the test files
* updated to latest version of node
* adding post install script to run `typings install`
* remove `iojs` build
* Restructure (#10)
* removing typescript - just not going to work on this project
* [WIP] converting to native JS
* running and tests passing with no trace of typescript
* oops - wrong package version
* Feature/#1 initial class content (#11)
* updating unit tests
* introduce node-canvas
* adding jshint ocnfig
* updated the BaseGenerator with a lot of the basic code
  (modified from the SolidGrey example
* Feature/extract to decorators (#12)
* extracted the creation process to a Decorator class
* Refactored into the 'Solid' class
* created an Abstract decorator to handle common properties/functions
* add unit test for AbstractDecorator
* reworked unit tests
* unit tests passing
* Create Demo App (#13)
* basic express added in `demo` folder
* drawing an image on the screen, but it doesn't contain any data yet...
* got something drawing on screen using promises for async handling
* tweaked constants and ensured reject would be called on error
* demo app working with default solid and variable solid pages :)
* amend image info
* improve unit testing
* [WIP] create package entry point (#14)
* add the start of a central library of exports
* make the demo a package in its own right
   So we can add dependencies properly
* moved the demo requirements to the correct package
   and sorted out the horrible formatting
* reorganised the package.json file
* adding start script to demo
* ensure the demo is using correct node version
* update README
* Prepare for deployment to npm (#17)
* add travis deployment config
* adding .npmignore  file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.