nodejs v 0.11:无法为websockets构建本机扩展

时间:2014-10-18 05:24:46

标签: node.js npm

我刚刚将节点的版本升级到v0.11.4,现在我的npm install websocket无法构建天真的扩展。错误输出的顶部是下面的。有没有人见过这个?

websocket@1.0.8 install /home/akonsu/projects/myproj/node_modules/websocket node install.js

[websocket v1.0.8] Attempting to compile native extensions. child_process: customFds option is deprecated, use stdio instead. make: Entering directory `/home/akonsu/projects/myproj/node_modules/websocket/build' CXX(target) Release/obj.target/validation/src/validation.o ../src/validation.cc:117:34: error: ‘Arguments’ does not name a type static Handle New(const Arguments& args) ^ ../src/validation.cc:117:45: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static Handle New(const Arguments& args) ^ ../src/validation.cc:125:42: error: ‘Arguments’ does not name a type static Handle IsValidUTF8(const Arguments& args) ^ ../src/validation.cc:125:53: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static Handle IsValidUTF8(const Arguments& args) ^ In file included from ../src/validation.cc:8:0: /home/akonsu/.node-gyp/0.11.14/deps/v8/include/v8.h: In static member function ‘static void Validation::Initialize(v8::Handle)’: /home/akonsu/.node-gyp/0.11.14/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/validation.cc:108:17: error: within this context

1 个答案:

答案 0 :(得分:0)

npm上的websocket模块当前与节点v0.11.x不兼容,这是一个不稳定的分支。尝试节点v0.10.x。