zigbee-demo icon indicating copy to clipboard operation
zigbee-demo copied to clipboard

npm start failed on debian

Open cyclonmaster-zz opened this issue 7 years ago • 3 comments

I cannot run the demo on Beaglebone debian 7.9 This is the error:

root@beaglebone:~/Desktop/zigbeer/zigbee-demo# npm start

[email protected] start /root/Desktop/zigbeer/zigbee-demo cross-env NODE_ENV=production node main

/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:70 var envVars = Object.assign({}, process.env); ^ TypeError: Object function Object() { [native code] } has no method 'assign' at getEnvVars (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:70:24) at getCommandArgsAndEnvVars (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:50:17) at crossEnv (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:23:31) at Object. (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/bin/cross-env.js:10:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16)

npm ERR! [email protected] start: cross-env NODE_ENV=production node main npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is most likely a problem with the zigbee-demo package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=production node main npm ERR! You can get their info via: npm ERR! npm owner ls zigbee-demo npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.8.13-bone79 npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! cwd /root/Desktop/zigbeer/zigbee-demo npm ERR! node -v v0.10.38 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/Desktop/zigbeer/zigbee-demo/npm-debug.log npm ERR! not ok code 0

cyclonmaster-zz avatar Apr 28 '17 08:04 cyclonmaster-zz

Hi @cyclonmaster, I would suggest you using node.js v4.x to test.

jackchased avatar May 15 '17 04:05 jackchased

I remove completely all nodejs from it. And reinstall nodejs v4.0 Now, I faled to run npm install zigbee-shepherd --save

I get this error:

root@beaglebone:~/Desktop/zigbeer# npm install zigbee-shepherd --save npm WARN engine [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"4.0.0","npm":"2.5.1"}) npm WARN engine [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"4.0.0","npm":"2.5.1"}) npm WARN engine [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"4.0.0","npm":"2.5.1"}) npm WARN engine [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"4.0.0","npm":"2.5.1"}) /

[email protected] install /root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v46-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp) (node) child_process: options.customFds option is deprecated. Use options.stdio instead. (node) child_process: options.customFds option is deprecated. Use options.stdio instead. make: Entering directory /root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../node_modules/nan/nan.h:45:3: error: #error This version of node/NAN/v8 requires a C++11 compiler In file included from /root/.node-gyp/4.0.0/src/node.h:42:0, from ../node_modules/nan/nan.h:49, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:336:1: error: expected unqualified-id before 'using' /root/.node-gyp/4.0.0/deps/v8/include/v8.h:469:1: error: expected unqualified-id before 'using' /root/.node-gyp/4.0.0/deps/v8/include/v8.h:852:1: error: expected unqualified-id before 'using' In file included from ../node_modules/nan/nan.h:192:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using' ../node_modules/nan/nan_maybe_43_inl.h:19:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:24:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:29:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:37:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:45:1: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:52:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:60:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:71:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:79:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:87:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:96:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:105:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:115:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:125:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:141:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:149:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:155:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:164:1: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:171:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:179:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:186:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:194:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:202:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:210:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:218:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:226:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:234:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:244:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:254:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:266:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:277:1: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:284:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:290:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:296:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:302:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_maybe_43_inl.h:326:8: error: 'MaybeLocal' does not name a type In file included from ../node_modules/nan/nan.h:197:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_converters.h:16:56: error: 'Maybe' does not name a type ../node_modules/nan/nan_converters.h:26:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:27:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:28:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:29:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:30:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:31:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:32:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:42:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:43:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:44:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:45:1: error: 'return_t' does not name a type ../node_modules/nan/nan_converters.h:46:1: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_converters.h:59:0, from ../node_modules/nan/nan.h:197, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:25:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:26:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:27:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:28:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:40:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:41:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:42:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long long int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:43:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type ../node_modules/nan/nan_converters_43_inl.h:44:1: error: 'return_t' in 'struct Nan::imp::ToFactory<int>' does not name a type In file included from ../node_modules/nan/nan.h:198:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]': ../node_modules/nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:21:32: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]': ../node_modules/nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:28:30: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]': ../node_modules/nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)' ../node_modules/nan/nan_new.h:35:31: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_new.h: At global scope: ../node_modules/nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_new.h:75:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:141:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:147:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:148:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:160:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:161:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:162:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:163:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:165:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:166:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:182:17: error: 'return_t' does not name a type ../node_modules/nan/nan_new.h:183:17: error: 'return_t' does not name a type In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:198, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_implementation_12_inl.h:61:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan_implementation_12_inl.h:91:46: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)': ../node_modules/nan/nan_implementation_12_inl.h:119:48: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan_implementation_12_inl.h: At global scope: ../node_modules/nan/nan_implementation_12_inl.h:198:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:221:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:231:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:265:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:272:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:278:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:285:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:291:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:296:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:344:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type ../node_modules/nan/nan_implementation_12_inl.h:351:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type In file included from ../node_modules/nan/nan.h:198:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type ../node_modules/nan/nan_new.h:335:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)': ../node_modules/nan/nan.h:664:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowError(const char*)': ../node_modules/nan/nan.h:664:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)': ../node_modules/nan/nan.h:665:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)': ../node_modules/nan/nan.h:665:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)': ../node_modules/nan/nan.h:666:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)': ../node_modules/nan/nan.h:666:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)': ../node_modules/nan/nan.h:667:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)': ../node_modules/nan/nan.h:667:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)': ../node_modules/nan/nan.h:668:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)': ../node_modules/nan/nan.h:668:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:676:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:698:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:713:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:725:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:741:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:747:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:759:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:770:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:780:10: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)': ../node_modules/nan/nan.h:1533:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const': ../node_modules/nan/nan.h:1551:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()': ../node_modules/nan/nan.h:1587:58: error: no matching function for call to 'New(const char*)' ../node_modules/nan/nan.h:1587:58: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../node_modules/nan/nan.h: In function 'void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)': ../node_modules/nan/nan.h:1902:34: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive] ../node_modules/nan/nan.h:1902:34: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../node_modules/nan/nan.h: In function 'void Nan::SetMethod(HandleType<T>, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:1914:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:1929:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)': ../node_modules/nan/nan.h:1954:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)': ../node_modules/nan/nan.h:1997:51: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2056:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2126:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2181:47: error: 'NewInstance' was not declared in this scope ../node_modules/nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2203:47: error: 'NewInstance' was not declared in this scope In file included from ../node_modules/nan/nan.h:2226:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_private.h: At global scope: ../node_modules/nan/nan_private.h:12:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_private.h:25:8: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan_private.h:44:8: error: 'Maybe' does not name a type ../node_modules/nan/nan_private.h:59:8: error: 'Maybe' does not name a type In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../node_modules/nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)': ../node_modules/nan/nan.h:2236:35: error: no matching function for call to 'New(const char*&)' ../node_modules/nan/nan.h:2236:35: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../node_modules/nan/nan.h:2237:47: error: 'GetFunction' was not declared in this scope ../node_modules/nan/nan.h:2237:65: error: 'Set' was not declared in this scope ../node_modules/nan/nan.h:2237:65: note: suggested alternative: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:3021:17: note: 'v8::Set' ../node_modules/nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)': ../node_modules/nan/nan.h:2246:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)' ../node_modules/nan/nan.h:2246:30: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)': ../node_modules/nan/nan.h:2261:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: In member function 'void Nan::Tap::pass(const char*)': ../node_modules/nan/nan.h:2268:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:2292:17: error: 'MaybeLocal' does not name a type ../node_modules/nan/nan.h:2297:40: error: 'MaybeLocal' was not declared in this scope ../node_modules/nan/nan.h:2297:40: note: suggested alternative: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:111:7: note: 'v8::MaybeLocal' ../node_modules/nan/nan.h:2297:52: error: template argument 1 is invalid ../node_modules/nan/nan.h:2297:54: error: expected unqualified-id before '>' token ../node_modules/nan/nan.h:2306:8: error: 'MaybeLocal' does not name a type In file included from ../node_modules/nan/nan.h:2317:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../node_modules/nan/nan_json.h:75:3: error: 'MaybeLocal' in namespace 'Nan' does not name a type ../node_modules/nan/nan_json.h:97:3: error: 'MaybeLocal' in namespace 'Nan' does not name a type ../node_modules/nan/nan_json.h:110:3: error: 'MaybeLocal' in namespace 'Nan' does not name a type ../node_modules/nan/nan_json.h: In constructor 'Nan::JSON::JSON()': ../node_modules/nan/nan_json.h:30:5: error: 'MaybeLocal' is not a member of 'Nan' ../node_modules/nan/nan_json.h:30:5: note: suggested alternative: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:111:7: note: 'v8::MaybeLocal' ../node_modules/nan/nan_json.h:30:30: error: expected primary-expression before '>' token ../node_modules/nan/nan_json.h:30:32: error: 'maybe_global_json' was not declared in this scope ../node_modules/nan/nan_json.h:30:52: error: 'Get' is not a member of 'Nan' ../node_modules/nan/nan_json.h:32:24: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' ../node_modules/nan/nan_json.h:39:5: error: 'MaybeLocal' is not a member of 'Nan' ../node_modules/nan/nan_json.h:39:5: note: suggested alternative: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:111:7: note: 'v8::MaybeLocal' ../node_modules/nan/nan_json.h:39:31: error: expected primary-expression before '>' token ../node_modules/nan/nan_json.h:39:33: error: 'maybe_obj_global_json' was not declared in this scope ../node_modules/nan/nan_json.h:40:42: error: no matching function for call to 'To(v8::Local<v8::Value>&)' ../node_modules/nan/nan_json.h:40:42: note: candidate is: ../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>) ../node_modules/nan/nan_json.h:58:5: error: 'MaybeLocal' is not a member of 'Nan' ../node_modules/nan/nan_json.h:58:5: note: suggested alternative: /root/.node-gyp/4.0.0/deps/v8/include/v8.h:111:7: note: 'v8::MaybeLocal' ../node_modules/nan/nan_json.h:58:30: error: expected primary-expression before '>' token ../node_modules/nan/nan_json.h:58:32: error: 'maybe_stringify_method' was not declared in this scope ../node_modules/nan/nan_json.h:58:57: error: 'Get' is not a member of 'Nan' ../node_modules/nan/nan_json.h:59:42: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked' In file included from ../src/serialport.cpp:6:0: ../src/./serialport_poller.h: At global scope: ../src/./serialport_poller.h:13:24: error: 'v8::Handle' has not been declared ../src/./serialport_poller.h:13:30: error: expected ',' or '...' before '<' token ../src/serialport.cpp: In function 'v8::Local<v8::Value> getValueFromObject(v8::Local<v8::Object>, std::string)': ../src/serialport.cpp:85:57: error: no matching function for call to 'New(std::string&)' ../src/serialport.cpp:85:57: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp:86:10: error: 'Get' is not a member of 'Nan' ../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)': ../src/serialport.cpp:164:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:164:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)': ../src/serialport.cpp:202:8: error: 'Has' is not a member of 'Nan' ../src/serialport.cpp:202:57: error: no matching function for call to 'New(const char [9])' ../src/serialport.cpp:202:57: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp:217:21: error: 'Get' is not a member of 'Nan' ../src/serialport.cpp:217:70: error: no matching function for call to 'New(const char [9])' ../src/serialport.cpp:217:70: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)': ../src/serialport.cpp:235:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:235:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void EIO_AfterWrite(uv_work_t*)': ../src/serialport.cpp:311:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:311:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)': ../src/serialport.cpp:385:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:385:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void setIfNotEmpty(v8::Local<v8::Object>, std::string, const char*)': ../src/serialport.cpp:428:57: error: no matching function for call to 'New(std::string&)' ../src/serialport.cpp:428:57: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp:430:5: error: 'Set' is not a member of 'Nan' ../src/serialport.cpp:430:5: note: suggested alternatives: ../src/./serialport.h:38:1: note: 'Set' /root/.node-gyp/4.0.0/deps/v8/include/v8.h:3021:17: note: 'v8::Set' ../src/serialport.cpp:430:53: error: no matching function for call to 'New(const char*&)' ../src/serialport.cpp:430:53: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp:432:5: error: 'Set' is not a member of 'Nan' ../src/serialport.cpp:432:5: note: suggested alternatives: ../src/./serialport.h:38:1: note: 'Set' /root/.node-gyp/4.0.0/deps/v8/include/v8.h:3021:17: note: 'v8::Set' ../src/serialport.cpp: In function 'void EIO_AfterList(uv_work_t*)': ../src/serialport.cpp:444:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:444:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp:460:7: error: 'Set' is not a member of 'Nan' ../src/serialport.cpp:460:7: note: suggested alternatives: ../src/./serialport.h:38:1: note: 'Set' /root/.node-gyp/4.0.0/deps/v8/include/v8.h:3021:17: note: 'v8::Set' ../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)': ../src/serialport.cpp:509:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:509:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)': ../src/serialport.cpp:569:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:569:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)': ../src/serialport.cpp:613:74: error: no matching function for call to 'New(char [1024])' ../src/serialport.cpp:613:74: note: candidates are: ../node_modules/nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&) ../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&) ../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&) ../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New() ../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0) ../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1) ../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2) ../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3) ../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>) ../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2) ../src/serialport.cpp: At global scope: ../src/serialport.cpp:653:17: error: variable or field 'init' declared void ../src/serialport.cpp:653:13: error: 'Handle' is not a member of 'v8' ../src/serialport.cpp:653:34: error: expected primary-expression before '>' token ../src/serialport.cpp:653:36: error: 'target' was not declared in this scope ../src/serialport.cpp:670:1: error: 'init' was not declared in this scope ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]': ../node_modules/nan/nan_new.h:29:1: warning: control reaches end of non-void function [-Wreturn-type] ../src/serialport.cpp: In function 'v8::Local<v8::Value> getValueFromObject(v8::Local<v8::Object>, std::string)': ../src/serialport.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [Release/obj.target/serialport/src/serialport.o] Error 1 make: Leaving directory /root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.8.13-bone79 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release" gyp ERR! cwd /root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport gyp ERR! node -v v4.0.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess. (/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:87:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:817:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) node-pre-gyp ERR! System Linux 3.8.13-bone79 node-pre-gyp ERR! command "/usr/local/bin/node" "/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport node-pre-gyp ERR! node -v v4.0.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.32 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/root/Desktop/zigbeer/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/build/Release' (1) npm ERR! Linux 3.8.13-bone79 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "zigbee-shepherd" "--save" npm ERR! node v4.0.0 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'. npm ERR! This is most likely a problem with the serialport package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get their info via: npm ERR! npm owner ls serialport npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/Desktop/zigbeer/npm-debug.log root@beaglebone:~/Desktop/zigbeer# node --version v4.0.0

cyclonmaster-zz avatar May 15 '17 09:05 cyclonmaster-zz

Ok, I remove all nodejs and npm, Install nodejs 0.10.1 successfully installed: npm install zigbee-shepherd --save

Then remove again all nodejs and npm Install nodejs 4.8.3 inside zgbee-demo, run npm install

Now this is the error I get:

root@beaglebone:~/Desktop/zigbeer/zigbee-demo# npm start

[email protected] start /root/Desktop/zigbeer/zigbee-demo cross-env NODE_ENV=production node main

/root/Desktop/zigbeer/zigbee-demo/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/node_modules/bindings/bindings.js:83 throw e ^

Error: Module did not self-register. at Error (native) at Object.Module._extensions..node (module.js:434:18) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at bindings (/root/Desktop/zigbeer/zigbee-demo/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/node_modules/bindings/bindings.js:76:44) at Object. (/root/Desktop/zigbeer/zigbee-demo/node_modules/zigbee-shepherd/node_modules/cc-znp/node_modules/serialport/lib/bindings.js:3:35) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)

npm ERR! Linux 3.8.13-bone79 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v4.8.3 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE npm ERR! [email protected] start: cross-env NODE_ENV=production node main npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script 'cross-env NODE_ENV=production node main'. npm ERR! This is most likely a problem with the zigbee-demo package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=production node main npm ERR! You can get their info via: npm ERR! npm owner ls zigbee-demo npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/Desktop/zigbeer/zigbee-demo/npm-debug.log root@beaglebone:~/Desktop/zigbeer/zigbee-demo#

cyclonmaster-zz avatar May 15 '17 10:05 cyclonmaster-zz