{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/656","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/656/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/656/events","html_url":"https://github.com/Automattic/node-canvas/issues/656","id":113820444,"number":656,"title":"error from \"npm install canvas\"","user":{"login":"mimizhou","id":15362415,"avatar_url":"https://avatars.githubusercontent.com/u/15362415?v=3","gravatar_id":"","url":"https://api.github.com/users/mimizhou","html_url":"https://github.com/mimizhou","followers_url":"https://api.github.com/users/mimizhou/followers","following_url":"https://api.github.com/users/mimizhou/following{/other_user}","gists_url":"https://api.github.com/users/mimizhou/gists{/gist_id}","starred_url":"https://api.github.com/users/mimizhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimizhou/subscriptions","organizations_url":"https://api.github.com/users/mimizhou/orgs","repos_url":"https://api.github.com/users/mimizhou/repos","events_url":"https://api.github.com/users/mimizhou/events{/privacy}","received_events_url":"https://api.github.com/users/mimizhou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-28T13:25:35Z","updated_at":"2015-11-04T12:22:51Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying doing \"npm install canvas\" on a Redhat 6.5 system with node v4.0, npm v 2.14.2, and got the following error:\r\n\r\n```text\r\n[xzhou1@sjm3vldcbwdev01 proteinpaint]$ npm install canvas\r\n\\\r\n> canvas@1.3.0 install /home/xzhou1/proteinpaint/node_modules/canvas\r\n> node-gyp rebuild\r\n\r\nmake: Entering directory `/home/xzhou1/proteinpaint/node_modules/canvas/build'\r\n  SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node\r\n  COPY Release/canvas-postbuild.node\r\n  CXX(target) Release/obj.target/canvas/src/Canvas.o\r\nIn file included from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler\r\nIn file included from ../src/Canvas.h:11,\r\n                 from ../src/Canvas.cc:7:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: At global scope:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: At global scope:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:852: error: expected unqualified-id before ‘using’\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:7151: error: ‘nullptr’ was not declared in this scope\r\nIn file included from ../node_modules/nan/nan.h:194,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_maybe_43_inl.h: At global scope:\r\n../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’\r\n../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’\r\n../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:60: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:65: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:70: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:77: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:84: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:92: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:99: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:109: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:115: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:119: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:126: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:131: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:136: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:140: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:146: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:151: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:157: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:163: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:169: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:175: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:181: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:187: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:195: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:202: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:206: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:210: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:214: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan_maybe_43_inl.h:218: error: expected initializer before ‘<’ token\r\nIn file included from ../node_modules/nan/nan.h:199,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type\r\n../node_modules/nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token\r\n../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type\r\n../node_modules/nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token\r\n../node_modules/nan/nan_converters.h:26: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:27: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:28: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:29: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:30: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:31: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:32: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:42: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:43: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:44: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:45: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_converters.h:46: error: ‘return_t’ does not name a type\r\nIn file included from ../node_modules/nan/nan_converters.h:59,\r\n                 from ../node_modules/nan/nan.h:199,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type\r\n../node_modules/nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type\r\nIn file included from ../node_modules/nan/nan.h:200,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’:\r\n../node_modules/nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’\r\n../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’:\r\n../node_modules/nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’\r\n../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’:\r\n../node_modules/nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’\r\n../node_modules/nan/nan_new.h: At global scope:\r\n../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type\r\n../node_modules/nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token\r\n../node_modules/nan/nan_new.h:75: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:141: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:147: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:148: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:160: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:161: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:162: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:163: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:165: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:166: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:182: error: ‘return_t’ does not name a type\r\n../node_modules/nan/nan_new.h:183: error: ‘return_t’ does not name a type\r\nIn file included from ../node_modules/nan/nan_new.h:189,\r\n                 from ../node_modules/nan/nan.h:200,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’:\r\n../node_modules/nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan_implementation_12_inl.h: At global scope:\r\n../node_modules/nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type\r\n../node_modules/nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type\r\nIn file included from ../node_modules/nan/nan.h:200,\r\n                 from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type\r\n../node_modules/nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type\r\nIn file included from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:\r\n../node_modules/nan/nan.h:651: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:\r\n../node_modules/nan/nan.h:651: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:\r\n../node_modules/nan/nan.h:652: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:\r\n../node_modules/nan/nan.h:652: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:\r\n../node_modules/nan/nan.h:653: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:\r\n../node_modules/nan/nan.h:653: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:\r\n../node_modules/nan/nan.h:654: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:\r\n../node_modules/nan/nan.h:654: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:\r\n../node_modules/nan/nan.h:655: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:\r\n../node_modules/nan/nan.h:655: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: At global scope:\r\n../node_modules/nan/nan.h:663: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:685: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:701: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:714: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:731: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:737: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:745: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:752: error: expected initializer before ‘<’ token\r\n../node_modules/nan/nan.h:758: error: expected initializer before ‘<’ token\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’\r\n../node_modules/nan/nan.h:1394: error:   in call to ‘Set’\r\n../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:\r\n../node_modules/nan/nan.h:1516: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:\r\n../node_modules/nan/nan.h:1534: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:\r\n../node_modules/nan/nan.h:1568: error: no matching function for call to ‘New(const char*)’\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:\r\n../node_modules/nan/nan.h:1857: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available\r\n../node_modules/nan/nan.h:1857: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)\r\n../node_modules/nan/nan.h:1858: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:\r\n../node_modules/nan/nan.h:1870: error: ‘GetFunction’ was not declared in this scope\r\n../node_modules/nan/nan.h:1871: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:\r\n../node_modules/nan/nan.h:1896: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:\r\n../node_modules/nan/nan.h:1939: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan.h:1987: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan.h:2057: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan.h:2112: error: ‘NewInstance’ was not declared in this scope\r\n../node_modules/nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan.h:2134: error: ‘NewInstance’ was not declared in this scope\r\nIn file included from ../src/Canvas.h:22,\r\n                 from ../src/Canvas.cc:7:\r\n../node_modules/nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:\r\n../node_modules/nan/nan.h:2161: error: no matching function for call to ‘New(const char*&)’\r\n../node_modules/nan/nan.h:2162: error: ‘GetFunction’ was not declared in this scope\r\n/home/xzhou1/.node-gyp/4.0.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’\r\n../node_modules/nan/nan.h:2162: error:   in call to ‘Set’\r\n../node_modules/nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:\r\n../node_modules/nan/nan.h:2169: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’\r\n../node_modules/nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:\r\n../node_modules/nan/nan.h:2182: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:\r\n../node_modules/nan/nan.h:2188: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../node_modules/nan/nan.h: At global scope:\r\n../node_modules/nan/nan.h:2212: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type\r\n../node_modules/nan/nan.h:2212: error: expected ‘;’ before ‘<’ token\r\n../node_modules/nan/nan.h:2215: error: expected ‘;’ before ‘}’ token\r\n../node_modules/nan/nan.h:2217: error: ‘MaybeLocal’ was not declared in this scope\r\n../node_modules/nan/nan.h:2217: error: template argument 1 is invalid\r\n../node_modules/nan/nan.h:2217: error: expected unqualified-id before ‘>’ token\r\n../node_modules/nan/nan.h:2226: error: expected constructor, destructor, or type conversion before ‘<’ token\r\nIn file included from ../src/Canvas.cc:8:\r\n../src/PNG.h: In function ‘cairo_status_t canvas_write_png(cairo_surface_t*, void (*)(png_struct*, png_byte*, png_size_t), void*)’:\r\n../src/PNG.h:165: warning: case label value is less than minimum value for type\r\nIn file included from ../src/Canvas.cc:20:\r\n../src/JPEGStream.h: In function ‘boolean empty_closure_output_buffer(jpeg_compress_struct*)’:\r\n../src/JPEGStream.h:35: error: ‘NewBuffer’ is not a member of ‘Nan’\r\n../src/JPEGStream.h: In function ‘void term_closure_destination(jpeg_compress_struct*)’:\r\n../src/JPEGStream.h:56: error: ‘NewBuffer’ is not a member of ‘Nan’\r\n../src/Canvas.cc: In static member function ‘static void Canvas::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:\r\n../src/Canvas.cc:37: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../src/Canvas.cc:46: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../src/Canvas.cc:47: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../src/Canvas.cc:48: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../src/Canvas.cc:58: error: ‘Set’ is not a member of ‘Nan’\r\n../src/Canvas.cc:58: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’\r\n../src/Canvas.cc: In static member function ‘static Nan::NAN_GETTER_RETURN_TYPE Canvas::GetType(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:\r\n../src/Canvas.cc:86: error: no matching function for call to ‘New(const char*)’\r\n../src/Canvas.cc: In static member function ‘static void Canvas::ToBufferAsyncAfter(uv_work_t*)’:\r\n../src/Canvas.cc:209: error: ‘CopyBuffer’ is not a member of ‘Nan’\r\n../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(const Nan::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/Canvas.cc:241: error: ‘CopyBuffer’ is not a member of ‘Nan’\r\n../src/Canvas.cc:252: error: no matching function for call to ‘New(const char [2])’\r\n../src/Canvas.cc:332: error: ‘CopyBuffer’ is not a member of ‘Nan’\r\n../src/Canvas.cc: In function ‘cairo_status_t streamPNG(void*, const uint8_t*, unsigned int)’:\r\n../src/Canvas.cc:348: error: ‘CopyBuffer’ is not a member of ‘Nan’\r\n../src/Canvas.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Canvas::StreamPNGSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/Canvas.cc:374: error: no matching function for call to ‘New(const char [2])’\r\n../src/Canvas.cc: In member function ‘void Canvas::resurface(v8::Local<v8::Object>)’:\r\n../src/Canvas.cc:536: error: no matching function for call to ‘New(const char [8])’\r\n../src/Canvas.cc:553: error: no matching function for call to ‘New(const char [8])’\r\n../src/Canvas.cc: In static member function ‘static v8::Local<v8::Value> Canvas::Error(cairo_status_t)’:\r\n../src/Canvas.cc:570: error: no matching function for call to ‘New(const char*)’\r\nmake: *** [Release/obj.target/canvas/src/Canvas.o] Error 1\r\nmake: Leaving directory `/home/xzhou1/proteinpaint/node_modules/canvas/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/opt/nodejs/node-v4.0.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Linux 2.6.32-504.12.2.el6.x86_64\r\ngyp ERR! command \"/opt/nodejs/node-v4.0.0-linux-x64/bin/node\" \"/opt/nodejs/node-v4.0.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/xzhou1/proteinpaint/node_modules/canvas\r\ngyp ERR! node -v v4.0.0\r\ngyp ERR! node-gyp -v v3.0.1\r\ngyp ERR! not ok \r\nnpm ERR! Linux 2.6.32-504.12.2.el6.x86_64\r\nnpm ERR! argv \"/opt/nodejs/node-v4.0.0-linux-x64/bin/node\" \"/opt/nodejs/nodejs/bin/npm\" \"install\" \"canvas\"\r\nnpm ERR! node v4.0.0\r\nnpm ERR! npm  v2.14.2\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! canvas@1.3.0 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the canvas@1.3.0 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the canvas package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls canvas\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/xzhou1/proteinpaint/npm-debug\r\n```\r\n\r\nI wonder if anybody have any suggestion or advice on this.\r\n\r\nThanks\r\n\r\nMi\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/153703484","html_url":"https://github.com/Automattic/node-canvas/issues/656#issuecomment-153703484","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/656","id":153703484,"user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T12:22:51Z","updated_at":"2015-11-04T12:22:51Z","body":"@LinusU problem also exists with travis builds when you don't touch defaults."}}