w3ctech

node0.12下memwatch出错

node0.12下安装memwatch出错,有那位遇到过

w3ctech微信

扫码关注w3ctech微信公众号

共收到5条回复

  • 出了什么错?

    回复此楼
  • 我提交一部分错误 child_process: customFds option is deprecated, use stdio instead. CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from ../src/heapdiff.cc:5: ../src/heapdiff.hh:14:35: error: expected class name class HeapDiff : public node::ObjectWrap ^ ../src/heapdiff.hh:19:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handle<v8::Value> New( const v8::Arguments& args ); ^~~~~ v8::internal::Arguments /Users/hackeridear/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../src/heapdiff.cc:5: ../src/heapdiff.hh:20:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handle<v8::Value> End( const v8::Arguments& args );

    回复此楼
  • 你是怎么安装的呢?

    是按照这篇文章的方式吗?http://www.w3ctech.com/topic/842

    他的npm地址:https://www.npmjs.com/package/memwatch

    回复此楼
  • 还有一种可能就是他不支持这么高版本的node,你是否可以降级一下你的node版本。

    回复此楼
  • 我用memwatch快两年了,之前用的node ~ 0.10左右版本是可以的,现在升级到node 0.12 stable就不行了;我想可能是伴随升级的v8版本高了,毕竟memwatch两年没怎么升级了。谢谢你的热心回答

    回复此楼