EyalAr / lwip

Light Weight Image Processor for NodeJS
MIT License
2.37k stars 231 forks source link

I cannot install css-sprite because lwip has a bug #303

Open francisrod01 opened 7 years ago

francisrod01 commented 7 years ago

Hi, I try to install css-sprite to run with gulp but I cannot.

I use nodejs -v 7.0.10. Debian Jessie 64-bit Intel Core i5 Haswell Mobile 8Gb RAM Gnome 3.14.1

References: https://github.com/aslansky/css-sprite/issues/84

$ npm i -D css-sprite
npm WARN deprecated css-sprite@0.9.9: css-sprite is now called sprity
npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

> phantomjssmith@0.4.6 preinstall /home/paneladm/projects/bestdestiny/website-business/node_modules/.staging/phantomjssmith-e98c0666
> phantomjs --version

sh: 1: phantomjs: not found

> canvas@1.1.6 install /home/paneladm/projects/bestdestiny/website-business/node_modules/canvassmith/node_modules/canvas
> node-gyp rebuild

make: Entering directory '/home/paneladm/projects/bestdestiny/website-business/node_modules/canvassmith/node_modules/canvas/build'
  SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
  COPY Release/canvas-postbuild.node
  CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from ../src/Canvas.h:22:0,
                 from ../src/Canvas.cc:7:
../../nan/nan.h: In function ‘v8::Local<v8::Signature> NanNew(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’:
../../nan/nan.h:342:78: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, v8::Handle<v8::FunctionTemplate>&, int&, v8::Handle<v8::FunctionTemplate>*&)’
     return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
                                                                              ^
../../nan/nan.h:342:78: note: candidate is:
In file included from ../src/Canvas.h:11:0,
                 from ../src/Canvas.cc:7:
/home/paneladm/.node-gyp/7.10.0/include/node/v8.h:5495:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
   static Local<Signature> New(
                           ^
/home/paneladm/.node-gyp/7.10.0/include/node/v8.h:5495:27: note:   candidate expects 2 arguments, 4 provided
In file included from ../src/Canvas.h:22:0,
                 from ../src/Canvas.cc:7:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::UnboundScript; P = v8::Local<v8::String>]’:
../../nan/nan.h:407:43: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1355): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), &source);
                                           ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::BooleanObject; P = bool]’:
../../nan/nan.h:412:40: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:4490): Pass an isolate [-Wdeprecated-declarations]
     return v8::BooleanObject::New(value).As<v8::BooleanObject>();
                                        ^
../../nan/nan.h: At global scope:
../../nan/nan.h:424:3: error: redefinition of ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’
   NanNew<v8::StringObject, v8::Handle<v8::String> >(
   ^
../../nan/nan.h:417:3: note: ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’ previously declared here
   NanNew<v8::StringObject, v8::Local<v8::String> >(
   ^
../../nan/nan.h:442:36: error: redefinition of ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../../nan/nan.h:436:36: note: ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../../nan/nan.h:454:36: error: redefinition of ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../../nan/nan.h:448:36: note: ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Uint32; P = int]’:
../../nan/nan.h:462:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Uint32; P = unsigned int]’:
../../nan/nan.h:468:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = int]’:
../../nan/nan.h:473:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = unsigned int]’:
../../nan/nan.h:478:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = unsigned char*]’:
../../nan/nan.h:522:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = const unsigned char*]’:
../../nan/nan.h:533:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = unsigned char*]’:
../../nan/nan.h:538:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = const unsigned char*]’:
../../nan/nan.h:544:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
../../nan/nan.h: In function ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’:
../../nan/nan.h:619:71: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2581): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewExternal(v8::Isolate::GetCurrent(), resource);
                                                                       ^
../../nan/nan.h: At global scope:
../../nan/nan.h:623:19: error: ‘NanNew’ declared as an ‘inline’ variable
       v8::String::ExternalAsciiStringResource *resource) {
                   ^
../../nan/nan.h:623:19: warning: ‘always_inline’ attribute ignored [-Wattributes]
../../nan/nan.h:623:19: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol
../../nan/nan.h:617:36: note: previous declaration ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’
   NAN_INLINE v8::Local<v8::String> NanNew(
                                    ^
../../nan/nan.h:623:7: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’
       v8::String::ExternalAsciiStringResource *resource) {
       ^
../../nan/nan.h:623:48: error: ‘resource’ was not declared in this scope
       v8::String::ExternalAsciiStringResource *resource) {
                                                ^
../../nan/nan.h:637:27: error: redefinition of ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Local<T>)’
   NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                           ^
../../nan/nan.h:632:27: note: ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T>)’ previously declared here
   NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {
                           ^
../../nan/nan.h:701:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback
                    ^
../../nan/nan.h:701:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback
       ^
../../nan/nan.h:702:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../../nan/nan.h:707:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback) {
                    ^
../../nan/nan.h:707:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback) {
       ^
../../nan/nan.h:712:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback
                    ^
../../nan/nan.h:712:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback
       ^
../../nan/nan.h:713:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../../nan/nan.h:718:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback) {
                    ^
../../nan/nan.h:718:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback) {
       ^
../../nan/nan.h:797:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
               ^
../../nan/nan.h:797:31: error: expected ‘,’ or ‘...’ before ‘<’ token
     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
                               ^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:798:42: error: ‘data’ was not declared in this scope
       _NanWeakCallbackInfo<T, P> *info = data.GetParameter();
                                          ^
../../nan/nan.h: At global scope:
../../nan/nan.h:889:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../../nan/nan.h:889:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:893:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../../nan/nan.h:893:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:900:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../../nan/nan.h:179:0,
                 from ../src/Canvas.h:22,
                 from ../src/Canvas.cc:7:
/home/paneladm/.node-gyp/7.10.0/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
In file included from ../src/Canvas.h:22:0,
                 from ../src/Canvas.cc:7:
../../nan/nan.h:900:67: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:904:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), size);
                                                             ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:911:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../../nan/nan.h:938:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1374): Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:945:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1374): Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
../../nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../../nan/nan.h:1993:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
   if (str->IsExternalAscii()) {
            ^
../../nan/nan.h:1994:23: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type
     const v8::String::ExternalAsciiStringResource* ext;
                       ^
../../nan/nan.h:1995:5: error: ‘ext’ was not declared in this scope
     ext = str->GetExternalAsciiStringResource();
     ^
../../nan/nan.h:1995:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
     ext = str->GetExternalAsciiStringResource();
                ^
../src/Canvas.cc: In static member function ‘static void Canvas::ToBuffer(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/Canvas.cc:324:14: warning: ‘v8::TryCatch::TryCatch()’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:7616): Use isolate version [-Wdeprecated-declarations]
     TryCatch try_catch;
              ^
../src/Canvas.cc: In static member function ‘static void Canvas::StreamPNGSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/Canvas.cc:415:12: warning: ‘v8::TryCatch::TryCatch()’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:7616): Use isolate version [-Wdeprecated-declarations]
   TryCatch try_catch;
            ^
../src/Canvas.cc: In static member function ‘static void Canvas::StreamJPEGSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/Canvas.cc:456:12: warning: ‘v8::TryCatch::TryCatch()’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:7616): Use isolate version [-Wdeprecated-declarations]
   TryCatch try_catch;
            ^
In file included from ../src/Canvas.h:22:0,
                 from ../src/Canvas.cc:7:
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:901:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
canvas.target.mk:121: recipe for target 'Release/obj.target/canvas/src/Canvas.o' failed
make: *** [Release/obj.target/canvas/src/Canvas.o] Error 1
make: Leaving directory '/home/paneladm/projects/bestdestiny/website-business/node_modules/canvassmith/node_modules/canvas/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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/paneladm/projects/bestdestiny/website-business/node_modules/canvassmith/node_modules/canvas
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 

> lwip@0.0.6 install /home/paneladm/projects/bestdestiny/website-business/node_modules/lwip
> node-gyp rebuild

make: Entering directory '/home/paneladm/projects/bestdestiny/website-business/node_modules/lwip/build'
  CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o
In file included from ../src/decoder/decoder.h:13:0,
                 from ../src/decoder/init.cpp:1:
../node_modules/nan/nan.h:120:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../node_modules/nan/nan.h:115:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                         ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Signature> NanNew(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’:
../node_modules/nan/nan.h:207:78: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, v8::Handle<v8::FunctionTemplate>&, int&, v8::Handle<v8::FunctionTemplate>*&)’
     return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
                                                                              ^
../node_modules/nan/nan.h:207:78: note: candidate is:
In file included from /home/paneladm/.node-gyp/7.10.0/include/node/node.h:42:0,
                 from ../src/decoder/decoder.h:11,
                 from ../src/decoder/init.cpp:1:
/home/paneladm/.node-gyp/7.10.0/include/node/v8.h:5495:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
   static Local<Signature> New(
                           ^
/home/paneladm/.node-gyp/7.10.0/include/node/v8.h:5495:27: note:   candidate expects 2 arguments, 4 provided
In file included from ../src/decoder/decoder.h:13:0,
                 from ../src/decoder/init.cpp:1:
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::UnboundScript; P = v8::Local<v8::String>]’:
../node_modules/nan/nan.h:272:43: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1355): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), &source);
                                           ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::BooleanObject; P = bool]’:
../node_modules/nan/nan.h:277:40: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:4490): Pass an isolate [-Wdeprecated-declarations]
     return v8::BooleanObject::New(value).As<v8::BooleanObject>();
                                        ^
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:289:3: error: redefinition of ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’
   NanNew<v8::StringObject, v8::Handle<v8::String> >(
   ^
../node_modules/nan/nan.h:282:3: note: ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’ previously declared here
   NanNew<v8::StringObject, v8::Local<v8::String> >(
   ^
../node_modules/nan/nan.h:307:36: error: redefinition of ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../node_modules/nan/nan.h:301:36: note: ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../node_modules/nan/nan.h:319:36: error: redefinition of ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../node_modules/nan/nan.h:313:36: note: ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
   NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                    ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Uint32; P = int]’:
../node_modules/nan/nan.h:327:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Uint32; P = unsigned int]’:
../node_modules/nan/nan.h:333:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = int]’:
../node_modules/nan/nan.h:338:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = unsigned int]’:
../node_modules/nan/nan.h:343:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = unsigned char*]’:
../node_modules/nan/nan.h:392:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = const unsigned char*]’:
../node_modules/nan/nan.h:403:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = unsigned char*]’:
../node_modules/nan/nan.h:408:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
../node_modules/nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = const unsigned char*]’:
../node_modules/nan/nan.h:414:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2542): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’:
../node_modules/nan/nan.h:500:71: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:2581): Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewExternal(v8::Isolate::GetCurrent(), resource);
                                                                       ^
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:590:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback
                    ^
../node_modules/nan/nan.h:590:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback
       ^
../node_modules/nan/nan.h:591:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../node_modules/nan/nan.h:596:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback) {
                    ^
../node_modules/nan/nan.h:596:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback) {
       ^
../node_modules/nan/nan.h:601:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback
                    ^
../node_modules/nan/nan.h:601:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback
       ^
../node_modules/nan/nan.h:602:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^
../node_modules/nan/nan.h:607:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback) {
                    ^
../node_modules/nan/nan.h:607:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback) {
       ^
../node_modules/nan/nan.h:686:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
               ^
../node_modules/nan/nan.h:686:31: error: expected ‘,’ or ‘...’ before ‘<’ token
     const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
                               ^
../node_modules/nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../node_modules/nan/nan.h:687:42: error: ‘data’ was not declared in this scope
       _NanWeakCallbackInfo<T, P> *info = data.GetParameter();
                                          ^
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:778:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../node_modules/nan/nan.h:778:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:782:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../node_modules/nan/nan.h:782:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:789:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../src/decoder/decoder.h:12:0,
                 from ../src/decoder/init.cpp:1:
/home/paneladm/.node-gyp/7.10.0/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
In file included from ../src/decoder/decoder.h:13:0,
                 from ../src/decoder/init.cpp:1:
../node_modules/nan/nan.h:789:67: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:793:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), size);
                                                             ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:800:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)’:
../node_modules/nan/nan.h:827:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1374): Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../node_modules/nan/nan.h:834:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated (declared at /home/paneladm/.node-gyp/7.10.0/include/node/v8.h:1374): Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
lwip_decoder.target.mk:167: recipe for target 'Release/obj.target/lwip_decoder/src/decoder/init.o' failed
make: *** [Release/obj.target/lwip_decoder/src/decoder/init.o] Error 1
make: Leaving directory '/home/paneladm/projects/bestdestiny/website-business/node_modules/lwip/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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/paneladm/projects/bestdestiny/website-business/node_modules/lwip
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
website-business@0.0.1 /home/paneladm/projects/bestdestiny/website-business
└── (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjssmith@0.4.6 (node_modules/phantomjssmith):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjssmith@0.4.6 preinstall: `phantomjs --version`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.1.6 (node_modules/canvassmith/node_modules/canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.1.6 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "css-sprite"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! lwip@0.0.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lwip@0.0.6 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the lwip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lwip
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lwip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/paneladm/.npm/_logs/2017-05-21T05_46_05_677Z-debug.log

My gulp code:

gulp.task('sprite', function () {
  var spriteData = gulp.src('resources/images/**/*.png')
    .pipe(tasks.sprites({
      imgName: 'todo-sprite.png',
      // cssName: '_todo-sprite.sass',
      base64: true,
      style: 'todo-sprite_base64.sass'
      algorithm: 'top-down',
      padding: 5
    }))
    .pipe(gulpif('*.png', gulp.dest('resources/images/.')))
    .pipe(gulpif('*.sass', gulp.dest('resources/stylesheets/.')))
})

...

Debug log is below:

5341 silly vacuum-fs quitting because other entries in /home/paneladm/projects/bestdestiny/website-business/node_modules
5342 silly vacuum-fs quitting because other entries in /home/paneladm/projects/bestdestiny/website-business/node_modules
5343 silly rollbackFailedOptional Finishing
5344 silly runTopLevelLifecycles Finishing
5345 silly install printInstalled
5346 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
5347 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
5348 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
5348 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
5348 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
5348 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
5349 warn optional SKIPPING OPTIONAL DEPENDENCY: phantomjssmith@0.4.6 (node_modules/phantomjssmith):
5350 warn optional SKIPPING OPTIONAL DEPENDENCY: phantomjssmith@0.4.6 preinstall: `phantomjs --version`
5350 warn optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY:
5351 verbose optional Failed at the phantomjssmith@0.4.6 preinstall script 'phantomjs --version'.
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: Make sure you have the latest version of node.js and npm installed.
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: If you do, this is most likely a problem with the phantomjssmith package,
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: not with npm itself.
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: Tell the author that this fails on your system:
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY:     phantomjs --version
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: You can get information on how to open an issue for this project with:
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY:     npm bugs phantomjssmith
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: Or if that isn't available, you can get their info via:
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY:     npm owner ls phantomjssmith
5351 verbose optional SKIPPING OPTIONAL DEPENDENCY: There is likely additional logging output above.
5352 warn optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.1.6 (node_modules/canvassmith/node_modules/canvas):
5353 warn optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.1.6 install: `node-gyp rebuild`
5353 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY:
5354 verbose optional Failed at the canvas@1.1.6 install script 'node-gyp rebuild'.
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: Make sure you have the latest version of node.js and npm installed.
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: If you do, this is most likely a problem with the canvas package,
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: not with npm itself.
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: Tell the author that this fails on your system:
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY:     node-gyp rebuild
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: You can get information on how to open an issue for this project with:
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY:     npm bugs canvas
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: Or if that isn't available, you can get their info via:
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY:     npm owner ls canvas
5354 verbose optional SKIPPING OPTIONAL DEPENDENCY: There is likely additional logging output above.
5355 verbose stack Error: lwip@0.0.6 install: `node-gyp rebuild`
5355 verbose stack Exit status 1
5355 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
5355 verbose stack     at emitTwo (events.js:106:13)
5355 verbose stack     at EventEmitter.emit (events.js:194:7)
5355 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
5355 verbose stack     at emitTwo (events.js:106:13)
5355 verbose stack     at ChildProcess.emit (events.js:194:7)
5355 verbose stack     at maybeClose (internal/child_process.js:899:16)
5355 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
5356 verbose pkgid lwip@0.0.6
5357 verbose cwd /home/paneladm/projects/bestdestiny/website-business
5358 error Linux 3.16.0-4-amd64
5359 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "css-sprite"
5360 error node v7.10.0
5361 error npm  v4.2.0
5362 error code ELIFECYCLE
5363 error errno 1
5364 error lwip@0.0.6 install: `node-gyp rebuild`
5364 error Exit status 1
5365 error Failed at the lwip@0.0.6 install script 'node-gyp rebuild'.
5365 error Make sure you have the latest version of node.js and npm installed.
5365 error If you do, this is most likely a problem with the lwip package,
5365 error not with npm itself.
5365 error Tell the author that this fails on your system:
5365 error     node-gyp rebuild
5365 error You can get information on how to open an issue for this project with:
5365 error     npm bugs lwip
5365 error Or if that isn't available, you can get their info via:
5365 error     npm owner ls lwip
5365 error There is likely additional logging output above.
5366 verbose exit [ 1, true ]