Code Monkey home page Code Monkey logo

node-lzf's Introduction

node-lzf

LZF compression library for nodejs.

LZF advantages:

  • Small code size (less then 500 lines including header files and docs).
  • Very fast compression speeds, rivaling a straight copy loop, especially for decompression which is basically at (unoptimized) memcpy-speed. Compression speed can be increased by 20% by sacrificing a few percent of compression ratio.
  • Mediocre compression ratios - you can usually expect about 40-50% compression for typical binary data
  • Easy to use (just two functions, no state attached)
  • Highly portable (written in C)
  • Tunable, see the file lzfP.h in the distribution, to tailor liblzf to your needs. The generated compressed blocks can be decompressed by any liblzf version regardless of the options used to compress.
  • Freely usable (BSD-type-license)

Usage

var lzf = require("lzf");


var lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
    "Curabitur volutpat, nulla nec egestas semper," +
    "ante dui tristique nibh, quis feugiat.";

// create buffer of your data
var loremBuffer = new Buffer(lorem);

// compress your buffer and get another buffer
var loremCompressed = lzf.compress(loremBuffer);

// decompress compressed buffer
var loremDecompressed = lzf.decompress(loremCompressed);

Benchmarks

Benchmarks against compress-buffer library. Just to be short: it's faster.

Testing compression at 100 bytes
lzf-compress x 139,495 ops/sec ±11.88% (58 runs sampled)
zlib-compress x 29,879 ops/sec ±6.88% (88 runs sampled)
Fastest is lzf-compress

Testing decompression at 100 bytes
lzf-decompress x 36,574 ops/sec ±7.74% (87 runs sampled)
zlib-decompress x 26,153 ops/sec ±6.92% (89 runs sampled)
Fastest is lzf-decompress

Testing compression at 1000 bytes
lzf-compress x 57,345 ops/sec ±9.49% (81 runs sampled)
zlib-compress x 11,828 ops/sec ±3.93% (60 runs sampled)
Fastest is lzf-compress

Testing decompression at 1000 bytes
lzf-decompress x 29,221 ops/sec ±7.06% (89 runs sampled)
zlib-decompress x 19,351 ops/sec ±4.77% (92 runs sampled)
Fastest is lzf-decompress

Testing compression at 10000 bytes
lzf-compress x 10,512 ops/sec ±3.26% (92 runs sampled)
zlib-compress x 1,850 ops/sec ±0.20% (73 runs sampled)
Fastest is lzf-compress

Testing decompression at 10000 bytes
lzf-decompress x 12,487 ops/sec ±3.85% (91 runs sampled)
zlib-decompress x 6,939 ops/sec ±3.14% (93 runs sampled)
Fastest is lzf-decompress

Testing compression at 100000 bytes
lzf-compress x 1,628 ops/sec ±1.50% (96 runs sampled)
zlib-compress x 132 ops/sec ±0.13% (93 runs sampled)
Fastest is lzf-compress

Testing decompression at 100000 bytes
lzf-decompress x 2,472 ops/sec ±1.09% (91 runs sampled)
zlib-decompress x 1,430 ops/sec ±0.73% (95 runs sampled)
Fastest is lzf-decompress

Authors

node-lzf's People

Contributors

bobrik avatar codeaholics avatar djanowski avatar ericwaldheim avatar fadimko avatar jmealo avatar pconstr avatar stevede avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-lzf's Issues

Fails to build

npm package fails to build with npm install lzf --save on node v6.8.1, npm 3.10.8, Linux 4.7.0-1-amd64 #1 SMP Debian 4.7.6-1 (2016-10-07) x86_64 GNU/Linux.

shell messages:

npm install lzf --save

> [email protected] install /tmp/test-lzf/node_modules/lzf
> node-gyp rebuild

make: Entering directory '/tmp/test-lzf/node_modules/lzf/build'
  CXX(target) Release/obj.target/lzf/src/lzf.o
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<v8::Signature> NanNew(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’:
../../nan/nan.h:189: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);
                                                                              ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:4832:27: note: candidate: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
   static Local<Signature> New(
                           ^~~
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:4832:27: note:   candidate expects 2 arguments, 4 provided
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P, const v8::ScriptOrigin&)’:
../../nan/nan.h:244:32: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::CompileUnbound(
                                ^~~~~~~~~~~~~~
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:1334:45: note: declared here
                        Local<UnboundScript> CompileUnbound(
                                             ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::UnboundScript; P = v8::Local<v8::String>]’:
../../nan/nan.h:253:32: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::CompileUnbound(
                                ^~~~~~~~~~~~~~
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:1334:45: note: declared here
                        Local<UnboundScript> CompileUnbound(
                                             ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h:254:43: warning: ‘static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), &source);
                                           ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:1334:45: note: declared here
                        Local<UnboundScript> CompileUnbound(
                                             ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::BooleanObject; P = bool]’:
../../nan/nan.h:259:40: warning: ‘static v8::Local<v8::Value> v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
     return v8::BooleanObject::New(value).As<v8::BooleanObject>();
                                        ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:4007:56: note: declared here
   V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
                                                        ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:271: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:264: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:289: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:283: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:301: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:295: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:309:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:8196:15: note: declared here
 Local<Uint32> Value::ToUint32() const {
               ^~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Uint32; P = unsigned int]’:
../../nan/nan.h:315:51: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), val)->ToUint32();
                                                   ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:8196:15: note: declared here
 Local<Uint32> Value::ToUint32() const {
               ^~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = int]’:
../../nan/nan.h:320:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:8202:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::Int32; P = unsigned int]’:
../../nan/nan.h:325:68: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                                    ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:8202:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = unsigned char*]’:
../../nan/nan.h:369:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:2334:21: note: declared here
       Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P, int) [with T = v8::String; P = const unsigned char*]’:
../../nan/nan.h:380:15: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       , length);
               ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:2334:21: note: declared here
       Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = unsigned char*]’:
../../nan/nan.h:385:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:2334:21: note: declared here
       Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<T> NanNew(P) [with T = v8::String; P = const unsigned char*]’:
../../nan/nan.h:391:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                                                                     ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:2334:21: note: declared here
       Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’:
../../nan/nan.h:477:71: warning: ‘static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::String::NewExternal(v8::Isolate::GetCurrent(), resource);
                                                                       ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:2372:38: note: declared here
                        Local<String> NewExternal(
                                      ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:481:19: error: ‘NanNew’ declared as an ‘inline’ variable
       v8::String::ExternalAsciiStringResource *resource) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:481:19: warning: ‘always_inline’ attribute ignored [-Wattribute ]
../../nan/nan.h:481:19: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol
../../nan/nan.h:475:36: note: previous declaration ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’
   NAN_INLINE v8::Local<v8::String> NanNew(
                                    ^~~~~~
../../nan/nan.h:481:7: error: ‘ExternalAsciiStringResource’ is not a member of  v8::String’
       v8::String::ExternalAsciiStringResource *resource) {
       ^~
../../nan/nan.h:481:48: error: ‘resource’ was not declared in this scope
       v8::String::ExternalAsciiStringResource *resource) {
                                                ^~~~~~~~
../../nan/nan.h:495: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:490: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:567:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback
                    ^~~~~~~~~~~~~~~~~~
../../nan/nan.h:567:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback
       ^~
../../nan/nan.h:568:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^~~~~~~~~~~~~~
../../nan/nan.h:573:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
       v8::Isolate::GCEpilogueCallback callback) {
                    ^~~~~~~~~~~~~~~~~~
../../nan/nan.h:573:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCEpilogueCallback callback) {
       ^~
../../nan/nan.h:578:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback
                    ^~~~~~~~~~~~~~~~~~
../../nan/nan.h:578:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback
       ^~
../../nan/nan.h:579:18: error: expected primary-expression before ‘gc_type_filter’
     , v8::GCType gc_type_filter = v8::kGCTypeAll) {
                  ^~~~~~~~~~~~~~
../../nan/nan.h:584:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
       v8::Isolate::GCPrologueCallback callback) {
                    ^~~~~~~~~~~~~~~~~~
../../nan/nan.h:584:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
       v8::Isolate::GCPrologueCallback callback) {
       ^~
../../nan/nan.h:755:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^~~~~~~
../../nan/nan.h:755: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:759:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^~~~~~~~
../../nan/nan.h:759: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:766:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../src/lzf.cc:3:0:
/home/jajis/.node-gyp/6.8.1/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/lzf.cc:10:0:
../../nan/nan.h:766:29: 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:770:29: 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:777: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:804:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:1354:21: note: declared here
       Local<Script> Compile(Isolate* isolate, Source* source,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)’:
../../nan/nan.h:811:74: warning: ‘static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                                                                          ^
In file included from /home/jajis/.node-gyp/6.8.1/include/node/v8.h:25:0,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node.h:42,
                 from /home/jajis/.node-gyp/6.8.1/include/node/node_buffer.h:4,
                 from ../src/lzf.cc:3:
/home/jajis/.node-gyp/6.8.1/include/node/v8.h:1354:21: note: declared here
       Local<Script> Compile(Isolate* isolate, Source* source,
                     ^
/home/jajis/.node-gyp/6.8.1/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/lzf.cc:10:0:
../../nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../../nan/nan.h:2103:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’; did you mean ‘IsExternal’?
   if (str->IsExternalAscii()) {
            ^~~~~~~~~~~~~~~
../../nan/nan.h:2104:23: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type
     const v8::String::ExternalAsciiStringResource* ext;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:2105:5: error: ‘ext’ was not declared in this scope
     ext = str->GetExternalAsciiStringResource();
     ^~~
../../nan/nan.h:2105:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’; did you mean ‘GetExternalStringResource’?
     ext = str->GetExternalAsciiStringResource();
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lzf.target.mk:98: recipe for target 'Release/obj.target/lzf/src/lzf.o' failed
make: *** [Release/obj.target/lzf/src/lzf.o] Error 1
make: Leaving directory '/tmp/test-lzf/node_modules/lzf/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/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:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.7.0-1-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/test-lzf/node_modules/lzf
gyp ERR! node -v v6.8.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Linux 4.7.0-1-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "lzf" "--save"
npm ERR! node v6.8.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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 lzf 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 lzf
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lzf
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/test-lzf/npm-debug.log

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', 'lzf', '--save' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData lzf
8 silly fetchNamedPackageData lzf
9 silly mapToRegistry name lzf
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'lzf',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   escapedName: 'lzf',
12 silly mapToRegistry   name: 'lzf',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/lzf
14 verbose request uri https://registry.npmjs.org/lzf
15 verbose request no auth needed
16 info attempt registry request try #1 at 5:12:23 PM
17 verbose request id 8db51548aad0ced9
18 verbose etag "79G6JKZ4VWW0G1KRZ1FUZCL55"
19 http request GET https://registry.npmjs.org/lzf
20 http 304 https://registry.npmjs.org/lzf
21 verbose headers { date: 'Tue, 18 Oct 2016 15:12:23 GMT',
21 verbose headers   via: '1.1 varnish',
21 verbose headers   'cache-control': 'max-age=300',
21 verbose headers   etag: '"79G6JKZ4VWW0G1KRZ1FUZCL55"',
21 verbose headers   age: '0',
21 verbose headers   connection: 'keep-alive',
21 verbose headers   'x-served-by': 'cache-fra1232-FRA',
21 verbose headers   'x-cache': 'HIT',
21 verbose headers   'x-cache-hits': '1',
21 verbose headers   'x-timer': 'S1476803543.427263,VS0,VE183',
21 verbose headers   vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get   { date: 'Tue, 18 Oct 2016 15:12:23 GMT',
22 silly get     via: '1.1 varnish',
22 silly get     'cache-control': 'max-age=300',
22 silly get     etag: '"79G6JKZ4VWW0G1KRZ1FUZCL55"',
22 silly get     age: '0',
22 silly get     connection: 'keep-alive',
22 silly get     'x-served-by': 'cache-fra1232-FRA',
22 silly get     'x-cache': 'HIT',
22 silly get     'x-cache-hits': '1',
22 silly get     'x-timer': 'S1476803543.427263,VS0,VE183',
22 silly get     vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/lzf from cache
24 verbose get saving lzf to /home/jajis/.npm/registry.npmjs.org/lzf/.cache.json
25 verbose correctMkdir /home/jajis/.npm correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly resolveWithNewModule [email protected] checking installable status
39 silly cache add args [ 'lzf', null ]
40 verbose cache add spec lzf
41 silly cache add parsed spec Result {
41 silly cache add   raw: 'lzf',
41 silly cache add   scope: null,
41 silly cache add   escapedName: 'lzf',
41 silly cache add   name: 'lzf',
41 silly cache add   rawSpec: '',
41 silly cache add   spec: 'latest',
41 silly cache add   type: 'tag' }
42 silly addNamed lzf@latest
43 verbose addNamed "latest" is being treated as a dist-tag for lzf
44 info addNameTag [ 'lzf', 'latest' ]
45 silly mapToRegistry name lzf
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry https://registry.npmjs.org/
48 silly mapToRegistry data Result {
48 silly mapToRegistry   raw: 'lzf',
48 silly mapToRegistry   scope: null,
48 silly mapToRegistry   escapedName: 'lzf',
48 silly mapToRegistry   name: 'lzf',
48 silly mapToRegistry   rawSpec: '',
48 silly mapToRegistry   spec: 'latest',
48 silly mapToRegistry   type: 'tag' }
49 silly mapToRegistry uri https://registry.npmjs.org/lzf
50 verbose addNameTag registry:https://registry.npmjs.org/lzf not in flight; fetching
51 verbose get https://registry.npmjs.org/lzf not expired, no request
52 silly addNameTag next cb for lzf with tag latest
53 silly addNamed [email protected]
54 verbose addNamed "0.3.0" is a plain semver version for lzf
55 silly cache afterAdd [email protected]
56 verbose afterAdd /home/jajis/.npm/lzf/0.3.0/package/package.json not in flight; writing
57 verbose correctMkdir /home/jajis/.npm correctMkdir not in flight; initializing
58 verbose afterAdd /home/jajis/.npm/lzf/0.3.0/package/package.json written
59 silly fetchNamedPackageData nan
60 silly mapToRegistry name nan
61 silly mapToRegistry using default registry
62 silly mapToRegistry registry https://registry.npmjs.org/
63 silly mapToRegistry data Result {
63 silly mapToRegistry   raw: 'nan',
63 silly mapToRegistry   scope: null,
63 silly mapToRegistry   escapedName: 'nan',
63 silly mapToRegistry   name: 'nan',
63 silly mapToRegistry   rawSpec: '',
63 silly mapToRegistry   spec: 'latest',
63 silly mapToRegistry   type: 'tag' }
64 silly mapToRegistry uri https://registry.npmjs.org/nan
65 verbose request uri https://registry.npmjs.org/nan
66 verbose request no auth needed
67 info attempt registry request try #1 at 5:12:23 PM
68 verbose etag "1YJEPM5V4XH0MZT0HV3B8R9BB"
69 http request GET https://registry.npmjs.org/nan
70 http 304 https://registry.npmjs.org/nan
71 verbose headers { date: 'Tue, 18 Oct 2016 15:12:23 GMT',
71 verbose headers   via: '1.1 varnish',
71 verbose headers   'cache-control': 'max-age=300',
71 verbose headers   etag: '"1YJEPM5V4XH0MZT0HV3B8R9BB"',
71 verbose headers   age: '99',
71 verbose headers   connection: 'keep-alive',
71 verbose headers   'x-served-by': 'cache-fra1232-FRA',
71 verbose headers   'x-cache': 'HIT',
71 verbose headers   'x-cache-hits': '7',
71 verbose headers   'x-timer': 'S1476803543.775818,VS0,VE0',
71 verbose headers   vary: 'Accept-Encoding' }
72 silly get cb [ 304,
72 silly get   { date: 'Tue, 18 Oct 2016 15:12:23 GMT',
72 silly get     via: '1.1 varnish',
72 silly get     'cache-control': 'max-age=300',
72 silly get     etag: '"1YJEPM5V4XH0MZT0HV3B8R9BB"',
72 silly get     age: '99',
72 silly get     connection: 'keep-alive',
72 silly get     'x-served-by': 'cache-fra1232-FRA',
72 silly get     'x-cache': 'HIT',
72 silly get     'x-cache-hits': '7',
72 silly get     'x-timer': 'S1476803543.775818,VS0,VE0',
72 silly get     vary: 'Accept-Encoding' } ]
73 verbose etag https://registry.npmjs.org/nan from cache
74 verbose get saving nan to /home/jajis/.npm/registry.npmjs.org/nan/.cache.json
75 verbose correctMkdir /home/jajis/.npm correctMkdir not in flight; initializing
76 silly resolveWithNewModule [email protected] checking installable status
77 silly cache add args [ '[email protected]', null ]
78 verbose cache add spec [email protected]
79 silly cache add parsed spec Result {
79 silly cache add   raw: '[email protected]',
79 silly cache add   scope: null,
79 silly cache add   escapedName: 'nan',
79 silly cache add   name: 'nan',
79 silly cache add   rawSpec: '1.3.0',
79 silly cache add   spec: '1.3.0',
79 silly cache add   type: 'version' }
80 silly addNamed [email protected]
81 verbose addNamed "1.3.0" is a plain semver version for nan
82 silly mapToRegistry name nan
83 silly mapToRegistry using default registry
84 silly mapToRegistry registry https://registry.npmjs.org/
85 silly mapToRegistry data Result {
85 silly mapToRegistry   raw: 'nan',
85 silly mapToRegistry   scope: null,
85 silly mapToRegistry   escapedName: 'nan',
85 silly mapToRegistry   name: 'nan',
85 silly mapToRegistry   rawSpec: '',
85 silly mapToRegistry   spec: 'latest',
85 silly mapToRegistry   type: 'tag' }
86 silly mapToRegistry uri https://registry.npmjs.org/nan
87 verbose addNameVersion registry:https://registry.npmjs.org/nan not in flight; fetching
88 verbose get https://registry.npmjs.org/nan not expired, no request
89 silly cache afterAdd [email protected]
90 verbose afterAdd /home/jajis/.npm/nan/1.3.0/package/package.json not in flight; writing
91 verbose correctMkdir /home/jajis/.npm correctMkdir not in flight; initializing
92 verbose afterAdd /home/jajis/.npm/nan/1.3.0/package/package.json written
93 silly loadAllDepsIntoIdealTree Finishing
94 silly loadIdealTree Finishing
95 silly currentTree [email protected]
96 silly idealTree [email protected]
96 silly idealTree ├── [email protected]
96 silly idealTree └── [email protected]
97 silly generateActionsToTake Starting
98 silly install generateActionsToTake
99 silly generateActionsToTake Finishing
100 silly diffTrees action count 2
101 silly diffTrees add [email protected]
102 silly diffTrees add [email protected]
103 silly decomposeActions action count 16
104 silly decomposeActions fetch [email protected]
105 silly decomposeActions extract [email protected]
106 silly decomposeActions test [email protected]
107 silly decomposeActions preinstall [email protected]
108 silly decomposeActions build [email protected]
109 silly decomposeActions install [email protected]
110 silly decomposeActions postinstall [email protected]
111 silly decomposeActions finalize [email protected]
112 silly decomposeActions fetch [email protected]
113 silly decomposeActions extract [email protected]
114 silly decomposeActions test [email protected]
115 silly decomposeActions preinstall [email protected]
116 silly decomposeActions build [email protected]
117 silly decomposeActions install [email protected]
118 silly decomposeActions postinstall [email protected]
119 silly decomposeActions finalize [email protected]
120 silly runTopLevelLifecycles Starting
121 silly executeActions Starting
122 silly install executeActions
123 silly doSerial global-install 0
124 silly doParallel fetch 2
125 verbose correctMkdir /home/jajis/.npm/_locks correctMkdir not in flight; initializing
126 verbose lock using /home/jajis/.npm/_locks/staging-25bd3b9b2f385fd4.lock for /tmp/test-lzf/node_modules/.staging
127 silly doParallel extract 2
128 silly extract [email protected]
129 silly extract [email protected]
130 verbose unbuild node_modules/.staging/nan-273a8be6
131 verbose unbuild node_modules/.staging/lzf-1817875f
132 silly gentlyRm /tmp/test-lzf/node_modules/.staging/nan-273a8be6 is being purged from base /tmp/test-lzf
133 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/nan-273a8be6
134 silly gentlyRm /tmp/test-lzf/node_modules/.staging/lzf-1817875f is being purged from base /tmp/test-lzf
135 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/lzf-1817875f
136 verbose tar unpack /home/jajis/.npm/nan/1.3.0/package.tgz
137 verbose tar unpacking to /tmp/test-lzf/node_modules/.staging/nan-273a8be6
138 silly gentlyRm /tmp/test-lzf/node_modules/.staging/nan-273a8be6 is being purged
139 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/nan-273a8be6
140 verbose tar unpack /home/jajis/.npm/lzf/0.3.0/package.tgz
141 verbose tar unpacking to /tmp/test-lzf/node_modules/.staging/lzf-1817875f
142 silly gentlyRm /tmp/test-lzf/node_modules/.staging/lzf-1817875f is being purged
143 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/lzf-1817875f
144 silly gunzTarPerm modes [ '755', '644' ]
145 silly gunzTarPerm modes [ '755', '644' ]
146 silly gunzTarPerm extractEntry package.json
147 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ]
148 silly gunzTarPerm extractEntry package.json
149 silly gunzTarPerm extractEntry README.md
150 silly gunzTarPerm modified mode [ 'README.md', 436, 420 ]
151 silly gunzTarPerm extractEntry .npmignore
152 silly gunzTarPerm extractEntry README.md
153 silly gunzTarPerm extractEntry LICENSE
154 silly gunzTarPerm modified mode [ 'LICENSE', 436, 420 ]
155 silly gunzTarPerm extractEntry include_dirs.js
156 silly gunzTarPerm modified mode [ 'include_dirs.js', 436, 420 ]
157 silly gunzTarPerm extractEntry CHANGELOG.md
158 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 420 ]
159 silly gunzTarPerm extractEntry .dntrc
160 silly gunzTarPerm modified mode [ '.dntrc', 436, 420 ]
161 silly gunzTarPerm extractEntry index.js
162 silly gunzTarPerm extractEntry benchmark/benchmark.js
163 silly gunzTarPerm extractEntry nan.h
164 silly gunzTarPerm modified mode [ 'nan.h', 436, 420 ]
165 silly gunzTarPerm extractEntry appveyor.yml
166 silly gunzTarPerm modified mode [ 'appveyor.yml', 436, 420 ]
167 silly gunzTarPerm extractEntry benchmark/data/100.txt
168 silly gunzTarPerm extractEntry benchmark/data/1000.txt
169 silly gunzTarPerm extractEntry benchmark/data/10000.txt
170 silly gunzTarPerm extractEntry benchmark/data/100000.txt
171 silly gunzTarPerm extractEntry binding.gyp
172 silly gunzTarPerm extractEntry src/lzf/lzf.h
173 silly gunzTarPerm extractEntry src/lzf/lzfP.h
174 silly gunzTarPerm extractEntry src/lzf/lzf_c.cc
175 silly gunzTarPerm extractEntry src/lzf/lzf_d.cc
176 silly gunzTarPerm extractEntry src/lzf.cc
177 silly gunzTarPerm extractEntry test/test.js
178 silly gentlyRm /tmp/test-lzf/node_modules/.staging/nan-273a8be6/node_modules is being purged
179 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/nan-273a8be6/node_modules
180 silly gentlyRm /tmp/test-lzf/node_modules/.staging/lzf-1817875f/node_modules is being purged
181 verbose gentlyRm don't care about contents; nuking /tmp/test-lzf/node_modules/.staging/lzf-1817875f/node_modules
182 silly doParallel preinstall 2
183 silly preinstall [email protected] /tmp/test-lzf/node_modules/.staging/nan-273a8be6
184 info lifecycle [email protected]~preinstall: [email protected]
185 silly preinstall [email protected] /tmp/test-lzf/node_modules/.staging/lzf-1817875f
186 info lifecycle [email protected]~preinstall: [email protected]
187 silly lifecycle [email protected]~preinstall: no script for preinstall, continuing
188 silly lifecycle [email protected]~preinstall: no script for preinstall, continuing
189 silly doReverseSerial remove 0
190 silly doSerial move 0
191 silly doSerial finalize 2
192 silly finalize /tmp/test-lzf/node_modules/nan
193 silly finalize /tmp/test-lzf/node_modules/lzf
194 silly doSerial build 2
195 silly build [email protected]
196 info linkStuff [email protected]
197 silly linkStuff [email protected] has /tmp/test-lzf/node_modules as its parent node_modules
198 verbose linkBins [email protected]
199 verbose linkMans [email protected]
200 silly build [email protected]
201 info linkStuff [email protected]
202 silly linkStuff [email protected] has /tmp/test-lzf/node_modules as its parent node_modules
203 verbose linkBins [email protected]
204 verbose linkMans [email protected]
205 silly doSerial global-link 0
206 silly doParallel update-linked 0
207 silly doSerial install 2
208 silly install [email protected] /tmp/test-lzf/node_modules/.staging/nan-273a8be6
209 info lifecycle [email protected]~install: [email protected]
210 silly lifecycle [email protected]~install: no script for install, continuing
211 silly install [email protected] /tmp/test-lzf/node_modules/.staging/lzf-1817875f
212 info lifecycle [email protected]~install: [email protected]
213 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
214 verbose lifecycle [email protected]~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/tmp/test-lzf/node_modules/lzf/node_modules/.bin:/tmp/test-lzf/node_modules/.bin:/home/jajis/.opam/4.03.0+flambda/bin:/home/jajis/.local/bin:/home/jajis/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
215 verbose lifecycle [email protected]~install: CWD: /tmp/test-lzf/node_modules/lzf
216 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
217 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
218 info lifecycle [email protected]~install: Failed to exec install script
219 verbose unlock done using /home/jajis/.npm/_locks/staging-25bd3b9b2f385fd4.lock for /tmp/test-lzf/node_modules/.staging
220 silly rollbackFailedOptional Starting
221 silly rollbackFailedOptional Finishing
222 silly runTopLevelLifecycles Finishing
223 silly install printInstalled
224 warn [email protected] No description
225 verbose If you need help, you may report this error at:
225 verbose     <https://github.com/npm/npm/issues>
226 warn [email protected] No repository field.
227 verbose If you need help, you may report this error at:
227 verbose     <https://github.com/npm/npm/issues>
228 verbose stack Error: [email protected] install: `node-gyp rebuild`
228 verbose stack Exit status 1
228 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
228 verbose stack     at emitTwo (events.js:106:13)
228 verbose stack     at EventEmitter.emit (events.js:191:7)
228 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
228 verbose stack     at emitTwo (events.js:106:13)
228 verbose stack     at ChildProcess.emit (events.js:191:7)
228 verbose stack     at maybeClose (internal/child_process.js:877:16)
228 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
229 verbose pkgid [email protected]
230 verbose cwd /tmp/test-lzf
231 error Linux 4.7.0-1-amd64
232 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "lzf" "--save"
233 error node v6.8.1
234 error npm  v3.10.8
235 error code ELIFECYCLE
236 error [email protected] install: `node-gyp rebuild`
236 error Exit status 1
237 error Failed at the [email protected] install script 'node-gyp rebuild'.
237 error Make sure you have the latest version of node.js and npm installed.
237 error If you do, this is most likely a problem with the lzf package,
237 error not with npm itself.
237 error Tell the author that this fails on your system:
237 error     node-gyp rebuild
237 error You can get information on how to open an issue for this project with:
237 error     npm bugs lzf
237 error Or if that isn't available, you can get their info via:
237 error     npm owner ls lzf
237 error There is likely additional logging output above.
238 verbose exit [ 1, true ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.