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

Error installing node-expat #134

Closed
dciccale opened this issue Dec 13, 2015 · 24 comments
Closed

Error installing node-expat #134

dciccale opened this issue Dec 13, 2015 · 24 comments

Comments

@dciccale
Copy link

npm ERR! node-expat@2.3.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-expat@2.3.12 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-expat 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 their info via:
npm ERR!     npm owner ls node-expat

Node v5.2.0
NPM v3.3.12

@sonnyp
Copy link
Contributor

sonnyp commented Dec 13, 2015

what OS?

@dciccale
Copy link
Author

Good question, this is running in circle ci, on their ec2 with ubuntu but I don't know any more details

By the way, here is the extended log.

And this time I run the installation on npm@3.5.3

> node-expat@2.3.12 install /home/ubuntu/api/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/home/ubuntu/api/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw { dev: 41,
  mode: 33204,
  nlink: 1,
  uid: 1000,
  gid: 1000,
  rdev: 0,
  blksize: 4096,
  ino: 1234475,
  size: 320,
  blocks: 8,
  atime: Sun Dec 13 2015 12:26:53 GMT+0000 (UTC),
  mtime: Sun Dec 13 2015 12:26:53 GMT+0000 (UTC),
  ctime: Sun Dec 13 2015 12:26:53 GMT+0000 (UTC),
  birthtime: Sun Dec 13 2015 12:26:53 GMT+0000 (UTC) }
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw { dev: 41,
  mode: 33204,
  nlink: 1,
  uid: 1000,
  gid: 1000,
  rdev: 0,
  blksize: 4096,
  ino: 1234479,
  size: 528,
  blocks: 8,
  atime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  mtime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  ctime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  birthtime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC) }
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw { dev: 41,
  mode: 33204,
  nlink: 1,
  uid: 1000,
  gid: 1000,
  rdev: 0,
  blksize: 4096,
  ino: 1234483,
  size: 289,
  blocks: 8,
  atime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  mtime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  ctime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC),
  birthtime: Sun Dec 13 2015 12:26:55 GMT+0000 (UTC) }
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  COPY Release/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
In file included from ../node-expat.cc:1:0:
../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /home/ubuntu/.node-gyp/5.2.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:45,
                 from ../node-expat.cc:1:
/home/ubuntu/.node-gyp/5.2.0/include/node/v8.h:336:1: error: expected unqualified-id before ‘using’
/home/ubuntu/.node-gyp/5.2.0/include/node/v8.h:469:1: error: expected unqualified-id before ‘using’
/home/ubuntu/.node-gyp/5.2.0/include/node/v8.h:856:1: error: expected unqualified-id before ‘using’
In file included from ../../nan/nan.h:194:0,
                 from ../node-expat.cc:1:
../../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 ../node-expat.cc:1:
../../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 ../node-expat.cc:1:
../../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 ../node-expat.cc:1:
../../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 ../node-expat.cc:1:
../../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 ../node-expat.cc:1:
../../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 ../node-expat.cc:1: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/ubuntu/.node-gyp/5.2.0/include/node/v8.h:3019: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 ../node-expat.cc:1: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/ubuntu/.node-gyp/5.2.0/include/node/v8.h:3019: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/ubuntu/.node-gyp/5.2.0/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
../node-expat.cc:11:26: error: ‘Handle’ has not been declared
../node-expat.cc:11:32: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc:481:23: error: ‘Handle’ has not been declared
../node-expat.cc:481:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc: In static member function ‘static void Parser::Initialize(int)’:
../node-expat.cc:29:5: error: ‘target’ was not declared in this scope
../node-expat.cc:29:36: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Parser::GetError(Nan::NAN_METHOD_ARGS_TYPE)’:
../node-expat.cc:173:49: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartElement(void*, const XML_Char*, const XML_Char**)’:
../node-expat.cc:301:36: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:301:73: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:304:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:304:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:304:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:304:56: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:305:46: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndElement(void*, const XML_Char*)’:
../node-expat.cc:317:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:317:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:317:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:317:54: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:317:87: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartCdata(void*)’:
../node-expat.cc:327:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:327:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:327:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:327:54: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndCdata(void*)’:
../node-expat.cc:337:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:337:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:337:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:337:52: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Text(void*, const XML_Char*, int)’:
../node-expat.cc:348:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:348:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:348:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:348:48: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:349:46: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../node-expat.cc:349:46: 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_new.h:270:1: note: Nan::imp::FactoryBase<v8::Boolean>::return_t Nan::New(bool)
../../nan/nan_new.h:270:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:276:1: note: Nan::imp::IntegerFactory<v8::Int32>::return_t Nan::New(int32_t)
../../nan/nan_new.h:276:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:282:1: note: Nan::imp::FactoryBase<v8::Uint32>::return_t Nan::New(uint32_t)
../../nan/nan_new.h:282:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:288:1: note: Nan::imp::FactoryBase<v8::Number>::return_t Nan::New(double)
../../nan/nan_new.h:288:1: note:   candidate expects 1 argument, 2 provided
../node-expat.cc: In static member function ‘static void Parser::ProcessingInstruction(void*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:360:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:360:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:360:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:360:65: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:361:48: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:362:46: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Comment(void*, const XML_Char*)’:
../node-expat.cc:373:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:373:17: error: expected primary-expression before ‘>’ token
../node-expat.cc:373:19: error: ‘argv’ was not declared in this scope
../node-expat.cc:373:51: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:373:84: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::XmlDecl(void*, const XML_Char*, const XML_Char*, int)’:
../node-expat.cc:387:51: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:388:49: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:390:50: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:395:25: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’ [-fpermissive]
../node-expat.cc:481:8: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’ [-fpermissive]
../node-expat.cc: In static member function ‘static void Parser::EntityDecl(void*, const XML_Char*, int, const XML_Char*, int, const XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:408:63: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:409:61: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:413:68: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../node-expat.cc:413:68: 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_new.h:270:1: note: Nan::imp::FactoryBase<v8::Boolean>::return_t Nan::New(bool)
../../nan/nan_new.h:270:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:276:1: note: Nan::imp::IntegerFactory<v8::Int32>::return_t Nan::New(int32_t)
../../nan/nan_new.h:276:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:282:1: note: Nan::imp::FactoryBase<v8::Uint32>::return_t Nan::New(uint32_t)
../../nan/nan_new.h:282:1: note:   candidate expects 1 argument, 2 provided
../../nan/nan_new.h:288:1: note: Nan::imp::FactoryBase<v8::Number>::return_t Nan::New(double)
../../nan/nan_new.h:288:1: note:   candidate expects 1 argument, 2 provided
../node-expat.cc:415:55: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:417:59: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:419:59: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:421:63: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:424:25: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’ [-fpermissive]
../node-expat.cc:481:8: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’ [-fpermissive]
../node-expat.cc: In static member function ‘static int Parser::UnknownEncoding(void*, const XML_Char*, XML_Encoding*)’:
../node-expat.cc:438:53: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:439:40: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:442:25: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’ [-fpermissive]
../node-expat.cc:481:8: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’ [-fpermissive]
../node-expat.cc: In member function ‘void Parser::Emit(int, int)’:
../node-expat.cc:485:5: error: ‘Handle’ was not declared in this scope
../node-expat.cc:485:18: error: expected primary-expression before ‘>’ token
../node-expat.cc:486:34: error: invalid use of member (did you forget the ‘&’ ?)
../node-expat.cc:486:34: error: base operand of ‘->’ is not a pointer
../node-expat.cc:486:57: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../node-expat.cc:486:86: error: expected primary-expression before ‘>’ token
../node-expat.cc:486:88: error: expected primary-expression before ‘)’ token
../node-expat.cc:487:30: error: ‘argv’ was not declared in this scope
../node-expat.cc: At global scope:
../node-expat.cc:492:21: error: variable or field ‘init’ declared void
../node-expat.cc:492:21: error: ‘Handle’ was not declared in this scope
../node-expat.cc:492:34: error: expected primary-expression before ‘>’ token
../node-expat.cc:492:36: error: ‘target’ was not declared in this scope
../node-expat.cc:497:3: error: ‘init’ was not declared in this scope
make: *** [Release/obj.target/node_expat/node-expat.o] Error 1
make: Leaving directory `/home/ubuntu/api/node_modules/node-expat/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:88:13)
gyp ERR! stack     at ChildProcess.emit (events.js:173:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
gyp ERR! System Linux 3.14.28-031428-generic
gyp ERR! command "/home/ubuntu/nvm/versions/node/v5.2.0/bin/node" "/home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/api/node_modules/node-expat
gyp ERR! node -v v5.2.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 

@tborychowski
Copy link

same issue on ubuntu 15.10

@lloydwatkin
Copy link
Contributor

Do we support 5.2 yet?

@sonnyp
Copy link
Contributor

sonnyp commented Dec 21, 2015

in theory yes

didn't try though

@c0b41
Copy link

c0b41 commented Dec 21, 2015

same problem
node: 5.2.0
npm: 3.5.2
ubuntu 14.04

@Schezuk
Copy link

Schezuk commented Dec 31, 2015

Same problem when installing node-xmpp-bosh on OpenShift - Node.js 0.12.0(Community) and Node.js 0.10.0(Official)
Error Log ver. 0.12.0:

[nodejs-someapp.rhcloud.com ~/app-root/runtime/repo]\> npm install node-xmpp-bosh
grep: /var/lib/openshift/guess-who-i-am/app-root/data//.nodejs.tmp/package.json: No such file or directory
grep: /var/lib/openshift/guess-who-i-am/app-root/data//.nodejs.tmp/package.json: No such file or directory
/
> ws@0.4.29 install /var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: Leaving directory `/var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/ws/build'

> node-expat@2.0.0 install /var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
../deps/libexpat/lib/xmltok.c:471: warning: missing initializer
../deps/libexpat/lib/xmltok.c:471: warning: (near initialization for ‘latin1_encoding_ns.isName2’)
../deps/libexpat/lib/xmltok.c:484: warning: missing initializer
../deps/libexpat/lib/xmltok.c:484: warning: (near initialization for ‘latin1_encoding.isName2’)
../deps/libexpat/lib/xmltok.c:504: warning: missing initializer
../deps/libexpat/lib/xmltok.c:504: warning: (near initialization for ‘ascii_encoding_ns.isName2’)
../deps/libexpat/lib/xmltok.c:517: warning: missing initializer
../deps/libexpat/lib/xmltok.c:517: warning: (near initialization for ‘ascii_encoding.isName2’)
../deps/libexpat/lib/xmltok.c:730: warning: missing initializer
../deps/libexpat/lib/xmltok.c:730: warning: (near initialization for ‘little2_encoding_ns.isName2’)
../deps/libexpat/lib/xmltok.c:749: warning: missing initializer
../deps/libexpat/lib/xmltok.c:749: warning: (near initialization for ‘little2_encoding.isName2’)
../deps/libexpat/lib/xmltok.c:762: warning: missing initializer
../deps/libexpat/lib/xmltok.c:762: warning: (near initialization for ‘internal_little2_encoding_ns.isName2’)
../deps/libexpat/lib/xmltok.c:775: warning: missing initializer
../deps/libexpat/lib/xmltok.c:775: warning: (near initialization for ‘internal_little2_encoding.isName2’)
../deps/libexpat/lib/xmltok.c:871: warning: missing initializer
../deps/libexpat/lib/xmltok.c:871: warning: (near initialization for ‘big2_encoding_ns.isName2’)
../deps/libexpat/lib/xmltok.c:890: warning: missing initializer
../deps/libexpat/lib/xmltok.c:890: warning: (near initialization for ‘big2_encoding.isName2’)
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
In file included from ../node-expat.cc:1:
/opt/rh/nodejs010/root/usr/include/node/node.h:62:16: error: v8.h: No such file or directory
In file included from /opt/rh/nodejs010/root/usr/include/node/node.h:67,
                 from ../node-expat.cc:1:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:59: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:59: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:59: error: ‘handle’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:59: error: ‘Unwrap’ declared as an ‘inline’ field
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:59: error: template declaration of ‘T* node::Unwrap’
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:66: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:66: error: ISO C++ forbids declaration of ‘Persistent’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:66: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:69: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:69: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:114: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:114: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In destructor ‘virtual node::ObjectWrap::~ObjectWrap()’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:48: error: ‘handle_’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In member function ‘void node::ObjectWrap::Wrap(int)’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:70: error: ‘handle_’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:71: error: ‘handle’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:72: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:72: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:72: error: ‘::New’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In member function ‘void node::ObjectWrap::MakeWeak()’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:79: error: ‘handle_’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Ref()’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:88: error: ‘handle_’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Unref()’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:103: error: ‘handle_’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h: In static member function ‘static void node::ObjectWrap::WeakCallback(int)’:
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:115: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:115: error: expected ‘;’ before ‘scope’
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:117: error: ‘data’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:118: error: ‘value’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_object_wrap.h:118: error: ‘class node::ObjectWrap’ has no member named ‘handle_’
In file included from ../node-expat.cc:1:
/opt/rh/nodejs010/root/usr/include/node/node.h: At global scope:
/opt/rh/nodejs010/root/usr/include/node/node.h:94: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:94: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:95: error: variable or field ‘Load’ declared void
/opt/rh/nodejs010/root/usr/include/node/node.h:95: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:95: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:95: error: ‘process’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:96: error: variable or field ‘EmitExit’ declared void
/opt/rh/nodejs010/root/usr/include/node/node.h:96: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:96: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:96: error: ‘process’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:113: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:113: error: expected ‘,’ or ‘...’ before ‘callback’
/opt/rh/nodejs010/root/usr/include/node/node.h: In function ‘void node::SetMethod(target_t, const char*, int)’:
/opt/rh/nodejs010/root/usr/include/node/node.h:115: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:116: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:116: error: ‘callback’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h: At global scope:
/opt/rh/nodejs010/root/usr/include/node/node.h:121: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:121: error: expected ‘,’ or ‘...’ before ‘callback’
/opt/rh/nodejs010/root/usr/include/node/node.h: In function ‘void node::SetPrototypeMethod(target_t, const char*, int)’:
/opt/rh/nodejs010/root/usr/include/node/node.h:123: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:123: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:123: error: ‘templ’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:123: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:123: error: ‘callback’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:124: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h: At global scope:
/opt/rh/nodejs010/root/usr/include/node/node.h:132: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:132: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:132: error: ‘encoding_v’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:133: error: expected primary-expression before ‘enum’
/opt/rh/nodejs010/root/usr/include/node/node.h:133: error: initializer expression list treated as compound expression
/opt/rh/nodejs010/root/usr/include/node/node.h:134: error: variable or field ‘FatalException’ declared void
/opt/rh/nodejs010/root/usr/include/node/node.h:134: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:134: error: ‘try_catch’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:135: error: variable or field ‘DisplayExceptionLine’ declared void
/opt/rh/nodejs010/root/usr/include/node/node.h:135: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:135: error: ‘try_catch’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:137: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:137: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:141: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:141: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:141: error: expected primary-expression before ‘,’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:142: error: expected primary-expression before ‘enum’
/opt/rh/nodejs010/root/usr/include/node/node.h:142: error: initializer expression list treated as compound expression
/opt/rh/nodejs010/root/usr/include/node/node.h:147: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:147: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:150: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:150: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:153: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:153: error: expected initializer before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:160: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:160: error: expected initializer before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:167: error: variable or field ‘cb_destroy’ declared void
/opt/rh/nodejs010/root/usr/include/node/node.h:167: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:167: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:167: error: ‘cb’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:172: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:172: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:177: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:177: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: typedef ‘node::addon_register_func’ is initialized (use decltype instead)
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘exports’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:192: error: ‘module’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node.h:198: error: ‘addon_register_func’ in namespace ‘node’ does not name a type
/opt/rh/nodejs010/root/usr/include/node/node.h:253: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:253: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:259: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:259: error: expected constructor, destructor, or type conversion before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node.h:265: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node.h:265: error: expected constructor, destructor, or type conversion before ‘<’ token
In file included from ../node-expat.cc:4:
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:71: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:71: error: ISO C++ forbids declaration of ‘Persistent’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:71: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:73: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:73: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:75: error: ‘Data’ declared as an ‘inline’ field
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:75: error: expected ‘;’ before ‘(’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:81: error: expected ‘;’ before ‘static’
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:85: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:85: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:116: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:116: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:116: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:118: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:118: error: expected ‘,’ or ‘...’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:129: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:129: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:129: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:132: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:132: error: expected initializer before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:133: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:133: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:133: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:134: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:134: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:134: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:135: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:135: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:135: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:136: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:136: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:136: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:137: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:137: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:137: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:138: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:138: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:138: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:141: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:141: error: expected initializer before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:142: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:142: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:142: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:143: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:143: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:143: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:144: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:144: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:144: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:145: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:145: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:145: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:146: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:146: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:146: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:147: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:147: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:147: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:148: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:148: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:148: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:149: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:149: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:149: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:150: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:150: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:150: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:151: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:151: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:151: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:152: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:152: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:152: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:153: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:153: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:153: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:154: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:154: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:154: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:155: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:155: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:155: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:156: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:156: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:156: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:157: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:157: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:157: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:158: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:158: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:158: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:159: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:159: error: ISO C++ forbids declaration of ‘Handle’ with no type
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:159: error: expected ‘;’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:161: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:161: error: expected ‘)’ before ‘<’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h: In static member function ‘static char* node::Buffer::Data(node::Buffer*)’:
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:82: error: ‘class node::Buffer’ has no member named ‘handle_’
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h: In static member function ‘static size_t node::Buffer::Length(int)’:
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:86: error: ‘val’ was not declared in this scope
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:87: error: ‘v8’ has not been declared
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:87: error: expected primary-expression before ‘)’ token
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h: In static member function ‘static size_t node::Buffer::Length(node::Buffer*)’:
/opt/rh/nodejs010/root/usr/include/node/node_buffer.h:93: error: ‘class node::Buffer’ has no member named ‘handle_’
../node-expat.cc: At global scope:
../node-expat.cc:9: error: ‘v8’ is not a namespace-name
../node-expat.cc:9: error: expected namespace-name before ‘;’ token
../node-expat.cc:12: error: expected initializer before ‘<’ token
../node-expat.cc:20: error: ‘Handle’ has not been declared
../node-expat.cc:20: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc:54: error: ISO C++ forbids declaration of ‘Handle’ with no type
../node-expat.cc:54: error: expected ‘;’ before ‘<’ token
../node-expat.cc:448: error: expected ‘;’ at end of input
../node-expat.cc:448: error: expected ‘}’ at end of input
../node-expat.cc: In static member function ‘static void Parser::Initialize(int)’:
../node-expat.cc:22: error: ‘HandleScope’ was not declared in this scope
../node-expat.cc:22: error: expected ‘;’ before ‘scope’
../node-expat.cc:23: error: ‘Local’ was not declared in this scope
../node-expat.cc:23: error: ‘FunctionTemplate’ was not declared in this scope
../node-expat.cc:23: error: ‘t’ was not declared in this scope
../node-expat.cc:23: error: ‘FunctionTemplate’ is not a class or namespace
../node-expat.cc:23: error: ‘New’ was not declared in this scope
../node-expat.cc:27: error: ‘Parse’ was not declared in this scope
../node-expat.cc:28: error: ‘SetEncoding’ was not declared in this scope
../node-expat.cc:29: error: ‘GetError’ was not declared in this scope
../node-expat.cc:30: error: ‘Stop’ was not declared in this scope
../node-expat.cc:31: error: ‘Resume’ was not declared in this scope
../node-expat.cc:32: error: ‘Reset’ was not declared in this scope
../node-expat.cc:33: error: ‘GetCurrentLineNumber’ was not declared in this scope
../node-expat.cc:34: error: ‘GetCurrentColumnNumber’ was not declared in this scope
../node-expat.cc:35: error: ‘GetCurrentByteIndex’ was not declared in this scope
../node-expat.cc:37: error: ‘target’ was not declared in this scope
../node-expat.cc:37: error: ‘String’ has not been declared
../node-expat.cc:39: error: ‘sym_startElement’ was not declared in this scope
../node-expat.cc:39: error: ‘v8’ has not been declared
../node-expat.cc:39: error: ‘v8’ has not been declared
../node-expat.cc:39: error: ‘::New’ has not been declared
../node-expat.cc:39: error: ‘v8’ has not been declared
../node-expat.cc:40: error: ‘sym_endElement’ was not declared in this scope
../node-expat.cc:40: error: ‘v8’ has not been declared
../node-expat.cc:40: error: ‘v8’ has not been declared
../node-expat.cc:40: error: ‘::New’ has not been declared
../node-expat.cc:40: error: ‘v8’ has not been declared
../node-expat.cc:41: error: ‘sym_startCdata’ was not declared in this scope
../node-expat.cc:41: error: ‘v8’ has not been declared
../node-expat.cc:41: error: ‘v8’ has not been declared
../node-expat.cc:41: error: ‘::New’ has not been declared
../node-expat.cc:41: error: ‘v8’ has not been declared
../node-expat.cc:42: error: ‘sym_endCdata’ was not declared in this scope
../node-expat.cc:42: error: ‘v8’ has not been declared
../node-expat.cc:42: error: ‘v8’ has not been declared
../node-expat.cc:42: error: ‘::New’ has not been declared
../node-expat.cc:42: error: ‘v8’ has not been declared
../node-expat.cc:43: error: ‘sym_text’ was not declared in this scope
../node-expat.cc:43: error: ‘v8’ has not been declared
../node-expat.cc:43: error: ‘v8’ has not been declared
../node-expat.cc:43: error: ‘::New’ has not been declared
../node-expat.cc:43: error: ‘v8’ has not been declared
../node-expat.cc:44: error: ‘sym_processingInstruction’ was not declared in this scope
../node-expat.cc:44: error: ‘v8’ has not been declared
../node-expat.cc:44: error: ‘v8’ has not been declared
../node-expat.cc:44: error: ‘::New’ has not been declared
../node-expat.cc:44: error: ‘v8’ has not been declared
../node-expat.cc:45: error: ‘sym_comment’ was not declared in this scope
../node-expat.cc:45: error: ‘v8’ has not been declared
../node-expat.cc:45: error: ‘v8’ has not been declared
../node-expat.cc:45: error: ‘::New’ has not been declared
../node-expat.cc:45: error: ‘v8’ has not been declared
../node-expat.cc:46: error: ‘sym_xmlDecl’ was not declared in this scope
../node-expat.cc:46: error: ‘v8’ has not been declared
../node-expat.cc:46: error: ‘v8’ has not been declared
../node-expat.cc:46: error: ‘::New’ has not been declared
../node-expat.cc:46: error: ‘v8’ has not been declared
../node-expat.cc:47: error: ‘sym_entityDecl’ was not declared in this scope
../node-expat.cc:47: error: ‘v8’ has not been declared
../node-expat.cc:47: error: ‘v8’ has not been declared
../node-expat.cc:47: error: ‘::New’ has not been declared
../node-expat.cc:47: error: ‘v8’ has not been declared
../node-expat.cc:48: error: ‘sym_emit’ was not declared in this scope
../node-expat.cc:48: error: ‘v8’ has not been declared
../node-expat.cc:48: error: ‘v8’ has not been declared
../node-expat.cc:48: error: ‘::New’ has not been declared
../node-expat.cc:48: error: ‘v8’ has not been declared
../node-expat.cc: At global scope:
../node-expat.cc:49: error: expected unqualified-id at end of input
make: *** [Release/obj.target/node_expat/node-expat.o] Error 1
make: Leaving directory `/var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/rh/nodejs010/root/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-573.12.1.el6.x86_64
gyp ERR! command "node" "/opt/rh/nodejs010/root/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/openshift/guess-who-i-am/app-root/runtime/repo/node_modules/node-xmpp-bosh/node_modules/node-expat
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat 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 their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-573.12.1.el6.x86_64
npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "node-xmpp-bosh"
npm ERR! cwd /var/lib/openshift/guess-who-i-am/app-root/runtime/repo
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

@dciccale
Copy link
Author

gcc (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2
node v4.2.2
npm v2.13.5

(workaround: after running npm rebuild node-expat it worked)

/home/ubuntu/api/node_modules/faketoe/node_modules/node-expat/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at bindings (/home/ubuntu/api/node_modules/faketoe/node_modules/node-expat/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/ubuntu/api/node_modules/faketoe/node_modules/node-expat/lib/node-expat.js:4:32)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/api/node_modules/faketoe/lib/index.js:4:13)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/api/node_modules/faketoe/index.js:1:80)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/api/lib/modules/shipment/shipment.controller.js:4:15)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/api/lib/modules/shipment/index.js:15:26)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at module.exports (/home/ubuntu/api/lib/routes.js:17:16)
    at Object.<anonymous> (/home/ubuntu/api/lib/index.js:17:20)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/api/lib/components/auth/auth-strategies.test.js:6:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at /home/ubuntu/api/node_modules/mocha/lib/mocha.js:219:27
    at Array.forEach (native)
    at Mocha.loadFiles (/home/ubuntu/api/node_modules/mocha/lib/mocha.js:216:14)
    at Mocha.run (/home/ubuntu/api/node_modules/mocha/lib/mocha.js:468:10)
    at Object.<anonymous> (/home/ubuntu/api/node_modules/mocha/bin/_mocha:403:18)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:136:18)
    at node.js:963:3

@sonnyp
Copy link
Contributor

sonnyp commented Jan 31, 2016

If you're installing a package that depends on an old version of node-expat, that's most probably the issue

@dciccale
Copy link
Author

It is using the latest https://github.com/hapijs/faketoe/blob/master/package.json#L21.

(anyhow, this was only failing when running tests in circleci)
I updated my circle.yml to run npm rebuild node-expat after npm install and it works..

@leachryanb
Copy link

Red Hat Enterprise Linux Server release 6.6 (Santiago)
node -v > v5.6.0
npm -v > 3.6.0

Straight npm install node-expat (top level install/not as a dependency) causes the following issue:

> node-expat@2.3.13 install /jenkins/workspace/project/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/jenkins/workspace/project/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  COPY Release/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
In file included from ../node-expat.cc:1:
../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /root/.node-gyp/5.6.0/include/node/node.h:42,
                 from ../../nan/nan.h:45,
                 from ../node-expat.cc:1:
/root/.node-gyp/5.6.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/root/.node-gyp/5.6.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/root/.node-gyp/5.6.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/root/.node-gyp/5.6.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/root/.node-gyp/5.6.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: At global scope:
/root/.node-gyp/5.6.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/root/.node-gyp/5.6.0/include/node/v8.h:794: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:819: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:831: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: At global scope:
/root/.node-gyp/5.6.0/include/node/v8.h:856: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h:1093: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h:1099: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/root/.node-gyp/5.6.0/include/node/v8.h:3204: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/root/.node-gyp/5.6.0/include/node/v8.h:7154: error: ‘nullptr’ was not declared in this scope
In file included from ../../nan/nan.h:194,
                 from ../node-expat.cc:1:
../../nan/nan_maybe_43_inl.h: At global scope:
../../nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:223: error: expected initializer before ‘<’ token
In file included from ../../nan/nan.h:199,
                 from ../node-expat.cc:1:
../../nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token
../../nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type
../../nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token
../../nan/nan_converters.h:26: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:27: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:28: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:29: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:30: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:31: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:32: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:42: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:43: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:44: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:45: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:46: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_converters.h:59,
                 from ../../nan/nan.h:199,
                 from ../node-expat.cc:1:
../../nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type
../../nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type
../../nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type
../../nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type
../../nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type
../../nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type
../../nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type
../../nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type
../../nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type
../../nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type
../../nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type
../../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 ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h: At global scope:
../../nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token
../../nan/nan_new.h:75: error: ‘return_t’ does not name a type
../../nan/nan_new.h:141: error: ‘return_t’ does not name a type
../../nan/nan_new.h:147: error: ‘return_t’ does not name a type
../../nan/nan_new.h:148: error: ‘return_t’ does not name a type
../../nan/nan_new.h:160: error: ‘return_t’ does not name a type
../../nan/nan_new.h:161: error: ‘return_t’ does not name a type
../../nan/nan_new.h:162: error: ‘return_t’ does not name a type
../../nan/nan_new.h:163: error: ‘return_t’ does not name a type
../../nan/nan_new.h:165: error: ‘return_t’ does not name a type
../../nan/nan_new.h:166: error: ‘return_t’ does not name a type
../../nan/nan_new.h:182: error: ‘return_t’ does not name a type
../../nan/nan_new.h:183: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_new.h:189,
                 from ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type
../../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>)’:
../../nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope
../../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>)’:
../../nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope
../../nan/nan_implementation_12_inl.h: At global scope:
../../nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
../../nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
../../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 ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
In file included from ../node-expat.cc:1:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:
../../nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:
../../nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:
../../nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:
../../nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:
../../nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:
../../nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:
../../nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:
../../nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:
../../nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:
../../nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:671: error: expected initializer before ‘<’ token
../../nan/nan.h:693: error: expected initializer before ‘<’ token
../../nan/nan.h:709: error: expected initializer before ‘<’ token
../../nan/nan.h:722: error: expected initializer before ‘<’ token
../../nan/nan.h:739: error: expected initializer before ‘<’ token
../../nan/nan.h:745: error: expected initializer before ‘<’ token
../../nan/nan.h:753: error: expected initializer before ‘<’ token
../../nan/nan.h:760: error: expected initializer before ‘<’ token
../../nan/nan.h:766: error: expected initializer before ‘<’ token
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’
../../nan/nan.h:1402: error:   in call to ‘Set’
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1524: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1542: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:
../../nan/nan.h:1576: error: no matching function for call to ‘New(const char*)’
../../nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:1865: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available
../../nan/nan.h:1865: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../nan/nan.h:1866: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:1878: error: ‘GetFunction’ was not declared in this scope
../../nan/nan.h:1879: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../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)’:
../../nan/nan.h:1904: error: ‘NewInstance’ was not declared in this scope
../../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)’:
../../nan/nan.h:1947: error: ‘NewInstance’ was not declared in this scope
../../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>)’:
../../nan/nan.h:1995: error: ‘NewInstance’ was not declared in this scope
../../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>)’:
../../nan/nan.h:2065: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../../nan/nan.h:2120: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../../nan/nan.h:2142: error: ‘NewInstance’ was not declared in this scope
In file included from ../node-expat.cc:1:
../../nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:2169: error: no matching function for call to ‘New(const char*&)’
../../nan/nan.h:2170: error: ‘GetFunction’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’
../../nan/nan.h:2170: error:   in call to ‘Set’
../../nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:
../../nan/nan.h:2177: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’
../../nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:
../../nan/nan.h:2190: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:
../../nan/nan.h:2196: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:2220: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan.h:2220: error: expected ‘;’ before ‘<’ token
../../nan/nan.h:2223: error: expected ‘;’ before ‘}’ token
../../nan/nan.h:2225: error: ‘MaybeLocal’ was not declared in this scope
../../nan/nan.h:2225: error: template argument 1 is invalid
../../nan/nan.h:2225: error: expected unqualified-id before ‘>’ token
../../nan/nan.h:2234: error: expected constructor, destructor, or type conversion before ‘<’ token
../node-expat.cc:11: error: ‘Handle’ has not been declared
../node-expat.cc:11: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc:481: error: ‘Handle’ has not been declared
../node-expat.cc:481: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc: In static member function ‘static void Parser::Initialize(int)’:
../node-expat.cc:29: error: ‘target’ was not declared in this scope
../node-expat.cc:29: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Parser::GetError(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../node-expat.cc:173: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartElement(void*, const XML_Char*, const XML_Char**)’:
../node-expat.cc:301: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:301: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:304: error: ‘Handle’ was not declared in this scope
../node-expat.cc:304: error: expected primary-expression before ‘>’ token
../node-expat.cc:304: error: ‘argv’ was not declared in this scope
../node-expat.cc:304: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:305: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndElement(void*, const XML_Char*)’:
../node-expat.cc:317: error: ‘Handle’ was not declared in this scope
../node-expat.cc:317: error: expected primary-expression before ‘>’ token
../node-expat.cc:317: error: ‘argv’ was not declared in this scope
../node-expat.cc:317: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:317: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartCdata(void*)’:
../node-expat.cc:327: error: ‘Handle’ was not declared in this scope
../node-expat.cc:327: error: expected primary-expression before ‘>’ token
../node-expat.cc:327: error: ‘argv’ was not declared in this scope
../node-expat.cc:327: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndCdata(void*)’:
../node-expat.cc:337: error: ‘Handle’ was not declared in this scope
../node-expat.cc:337: error: expected primary-expression before ‘>’ token
../node-expat.cc:337: error: ‘argv’ was not declared in this scope
../node-expat.cc:337: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Text(void*, const XML_Char*, int)’:
../node-expat.cc:348: error: ‘Handle’ was not declared in this scope
../node-expat.cc:348: error: expected primary-expression before ‘>’ token
../node-expat.cc:348: error: ‘argv’ was not declared in this scope
../node-expat.cc:348: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:349: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../../nan/nan_new.h:270: note: candidates are: v8::Local<v8::Boolean> Nan::New(bool)
../../nan/nan_new.h:276: note:                 v8::Local<v8::Int32> Nan::New(int32_t)
../../nan/nan_new.h:282: note:                 v8::Local<v8::Uint32> Nan::New(uint32_t)
../../nan/nan_new.h:288: note:                 v8::Local<v8::Number> Nan::New(double)
../node-expat.cc: In static member function ‘static void Parser::ProcessingInstruction(void*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:360: error: ‘Handle’ was not declared in this scope
../node-expat.cc:360: error: expected primary-expression before ‘>’ token
../node-expat.cc:360: error: ‘argv’ was not declared in this scope
../node-expat.cc:360: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:361: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:362: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Comment(void*, const XML_Char*)’:
../node-expat.cc:373: error: ‘Handle’ was not declared in this scope
../node-expat.cc:373: error: expected primary-expression before ‘>’ token
../node-expat.cc:373: error: ‘argv’ was not declared in this scope
../node-expat.cc:373: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:373: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::XmlDecl(void*, const XML_Char*, const XML_Char*, int)’:
../node-expat.cc:387: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:388: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:390: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:395: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:395: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In static member function ‘static void Parser::EntityDecl(void*, const XML_Char*, int, const XML_Char*, int, const XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:408: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:409: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:413: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../../nan/nan_new.h:270: note: candidates are: v8::Local<v8::Boolean> Nan::New(bool)
../../nan/nan_new.h:276: note:                 v8::Local<v8::Int32> Nan::New(int32_t)
../../nan/nan_new.h:282: note:                 v8::Local<v8::Uint32> Nan::New(uint32_t)
../../nan/nan_new.h:288: note:                 v8::Local<v8::Number> Nan::New(double)
../node-expat.cc:415: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:417: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:419: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:421: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:424: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:424: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In static member function ‘static int Parser::UnknownEncoding(void*, const XML_Char*, XML_Encoding*)’:
../node-expat.cc:438: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:439: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:442: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:442: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In member function ‘void Parser::Emit(int, int)’:
../node-expat.cc:485: error: ‘Handle’ was not declared in this scope
../node-expat.cc:485: error: expected primary-expression before ‘>’ token
../node-expat.cc:486: error: invalid use of member (did you forget the ‘&’ ?)
../node-expat.cc:486: error: base operand of ‘->’ is not a pointer
../node-expat.cc:486: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:486: error: expected primary-expression before ‘>’ token
../node-expat.cc:486: error: expected primary-expression before ‘)’ token
../node-expat.cc:487: error: ‘argv’ was not declared in this scope
../node-expat.cc: At global scope:
../node-expat.cc:492: error: variable or field ‘init’ declared void
../node-expat.cc:492: error: ‘Handle’ was not declared in this scope
../node-expat.cc:492: error: expected primary-expression before ‘>’ token
../node-expat.cc:492: error: ‘target’ was not declared in this scope
../node-expat.cc:497: error: ‘init’ was not declared in this scope
../node-expat.cc:497: error: too many initializers for ‘node::node_module’
make: *** [Release/obj.target/node_expat/node-expat.o] Error 1

@jmortimer
Copy link

This issue is also confirmed on Windows Server 2012 R2

node v4.3.2
npm v3.7.5
npm-debug.log.txt

@sonnyp
Copy link
Contributor

sonnyp commented Mar 8, 2016

windows support is broken and we don't have anyone working on it

see #132

@sonnyp
Copy link
Contributor

sonnyp commented Mar 8, 2016

@dciccale @tborychowski @c0b41 @Schezuk @leachryanb take a look at our .travis.yml and try that.

@Z-starts
Copy link

Z-starts commented Mar 9, 2016

centOs 6.5
node v4.3.2
npm v2.14.12
gcc 4.4.x
npm-debug.log.txt

but

centOs 6.5
node v4.3.1
npm v2.14.12

gcc 4.9.3

install is ok!!!

@sonnyp
Copy link
Contributor

sonnyp commented Mar 9, 2016

@Z-starts you sure? can you reproduce?

@Z-starts
Copy link

Z-starts commented Mar 9, 2016

@sonnyp update gcc test again

@brianjhanson
Copy link

I've also run into this issue. OS X 10.11.3 (15D21) happened with Node v4.2.2, v4.2.3, v4.3.1 and v4.3.2

npm-debug.txt

@javahas
Copy link

javahas commented Mar 24, 2016

I have similar issue on Windows 7. : :

`npm ERR! Failed at the node-expat@2.3.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-expat 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 their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR! error rolling back Error: EPERM: operation not permitted, unlink 'C:\myapp\node_modules\node-expat\build\node_expat.vcxproj'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EPERM: operation not permitted, unlink 'C:\myapp\node_modules\node-expat\build\node_expat.vcxproj']
npm ERR! error rolling back errno: -4048,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: 'C:\myapp\nw\node_modules\node-expat\build\node_expat.vcxproj' }

npm ERR! Please include the following file with any support request:
npm ERR! C:\myapp\npm-debug.log

@haozxuan
Copy link

haozxuan commented Mar 31, 2016

i have this problem too, but i don't think this is xml2json itself;
when i check node to 0.12.6, npm install xml2json is work;and i change node version to 4.X ,debug xml2json install ,i found it's devDependencies include node-iconv module, and this case node-gyp rebuild false. so i check node-iconv, and found when node version is 0.12.X,node-gyp is work,but 4.X or 5.X node-gyp is doesn't work, and node-iconv seem not update with node version;
so i think del node-iconv devDependencies or replace it, can fix this question;

simple Chinese:我尝试过os、redhat 5.4 、redhat6.4系统,用node 0.12.X版本安装xml2json结果全部都正常;但使用node 4.X 或 5.X,就安装失败,提示node-gyp rebuilt false。于是我一个个依赖安装,发现node-iconv模块安装失败,同样提示node-gyp rebuilt false,于是我调查了node版本的changelog,发现在0.12.X升级到4.X的过程中node-gyp有breakchanged,,并且手动将node 4.X 或 5.X 的node-gyp版本改为1.0.3(node 0.12.X自带版本)后,安装成功;
Ps:node-iconv在该node版本前后已经 停止维护,所以我认为替换掉node-iconv模块就可以解决该问题;

@Chris2011
Copy link

I have Windows 10 with node 4.4.2 and still the same problem, can't install that, got this error:

C:\Projekte\proj\node_modules\node-expat\node_modules\nan\nan.h(41): fatal error C1189: #error :  This version of
node/NAN/v8 requires a C++11 compiler [C:\Projekte\proj\node_modules\node-expat\build\node_expat.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\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 Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Projekte\proj\node_modules\node-expat
gyp ERR! node -v v4.4.2
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-expat"
npm ERR! node v4.4.2
npm ERR! npm  v2.15.0
npm ERR! code ELIFECYCLE

npm ERR! node-expat@2.3.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.3.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Projekte\proj\npm-debug.log

@astro
Copy link
Collaborator

astro commented Apr 21, 2016

The common issue here is outdated C++ compiler versions. Please upgrade.

@astro astro closed this as completed Apr 21, 2016
@Chris2011
Copy link

But often for example node-gyp you have to use this: Visual C++ 2010 Express or Visual Studio 2010

as the steps are required this. You can find the installation here: https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/

I don't know whether Visual C++ 2010 will supported anymore or not, but I think no.

@jeanru
Copy link

jeanru commented Sep 5, 2017

Try to install Visual Studio 2012 and run npm config set msvs_version 2012 --global Refer to https://stackoverflow.com/questions/14278417/cannot-install-node-modules-that-require-compilation-on-windows-7-x64-vs2012/16854333#16854333

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

No branches or pull requests