2014-10-18 38 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.

相關問題