2014-10-18 35 views
0

我刚刚将我的节点版本升级到v0.11.4,现在我的npm install websocket无法构建原始扩展。错误输出的顶部部分如下。有没有人看过这个? nodejs v 0.11:无法为websockets构建本机扩展

[email protected] 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

回答

0

npm上的websocket模块目前与节点v0.11.x不兼容,该节点是不稳定的分支。试试节点v0.10.x.

相关问题