node-memwatch はv0.11.14だとうまくインストールできなかった。
こんなエラーが出てビルドできなかった。
$n latest
で、v0.12.7をインストールし、~/.node-gyp を削除して再トライしたら
うまくいきました。 v0.11系はダメなのかね。。
> memwatch-next@0.2.9 install /var/node_modules/memwatch-next > node-gyp rebuild make: Entering directory `/var/node_modules/memwatch-next/build' CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from ../src/heapdiff.hh:11:0, from ../src/heapdiff.cc:12: ../node_modules/nan/nan.h: In function 'void Nan::SetCounterFunction(v8::CounterLookupCallback)': ../node_modules/nan/nan.h:449:32: error: 'class v8::Isolate' has no member named 'SetCounterFunction' ../node_modules/nan/nan.h: In function 'void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback)': ../node_modules/nan/nan.h:454:32: error: 'class v8::Isolate' has no member named 'SetCreateHistogramFunction' ../node_modules/nan/nan.h: In function 'void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback)': ../node_modules/nan/nan.h:459:32: error: 'class v8::Isolate' has no member named 'SetAddHistogramSampleFunction' ../node_modules/nan/nan.h: In function 'bool Nan::IdleNotification(int)': ../node_modules/nan/nan.h:470:39: error: 'class v8::Isolate' has no member named 'IdleNotification' ../node_modules/nan/nan.h: In function 'void Nan::LowMemoryNotification()': ../node_modules/nan/nan.h:475:32: error: 'class v8::Isolate' has no member named 'LowMemoryNotification' ../node_modules/nan/nan.h: In function 'void Nan::ContextDisposedNotification()': ../node_modules/nan/nan.h:479:32: error: 'class v8::Isolate' has no member named 'ContextDisposedNotification' make: *** [Release/obj.target/memwatch/src/heapdiff.o] Error 1 make: Leaving directory `/var/node_modules/memwatch-next/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:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1059:12) gyp ERR! System Linux 2.6.32-504.23.4.el6.x86_64 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/node_modules/memwatch-next gyp ERR! node -v v0.11.14 gyp ERR! node-gyp -v v2.0.2 gyp ERR! not ok npm ERR! Linux 2.6.32-504.23.4.el6.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "memwatch-next" npm ERR! node v0.11.14 npm ERR! npm v2.0.0 npm ERR! code ELIFECYCLE npm ERR! memwatch-next@0.2.9 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the memwatch-next@0.2.9 install script. npm ERR! This is most likely a problem with the memwatch-next package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls memwatch-next npm ERR! There is likely additional logging output above.