npm 安装 fibers 报错
https://github.com/laverdet/node-fibers
> fibers@1.0.5 install /Users/integ/sfdev/SF_Event/node_modules/fibers
> node ./build.js
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:109:32: error: too many arguments to function call, expected single argument 'value', have 2 arguments
return Boolean::New(isolate, value);
~~~~~~~~~~~~ ^~~~~
/Users/integ/.node-gyp/0.11.12/deps/v8/include/v8.h:5967:1: note: 'New' declared here
Handle<Boolean> Boolean::New(bool value) {
^
../src/fibers.cc:123:68: error: too many arguments to function call, expected at most 4, have 5
return FunctionTemplate::New(isolate, callback, data, signature, length);
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/Users/integ/.node-gyp/0.11.12/deps/v8/include/v8.h:3346:3: note: 'New' declared here
static Local<FunctionTemplate> New(
^
../src/fibers.cc:132:50: error: too many arguments to function call, expected at most 3, have 4
return Signature::New(isolate, receiver, argc, argv);
~~~~~~~~~~~~~~ ^~~~
/Users/integ/.node-gyp/0.11.12/deps/v8/include/v8.h:3585:3: note: 'New' declared here
static Local<Signature> New(Handle<FunctionTemplate> receiver =
^
../src/fibers.cc:140:3: error: too many arguments to function call, expected 1, have 2; did you mean '::uni::SetResourceConstraints'?
v8::SetResourceConstraints(isolate, constraints);
^~~~~~~~~~~~~~~~~~~~~~~~~~
::uni::SetResourceConstraints
../src/fibers.cc:139:7: note: '::uni::SetResourceConstraints' declared here
void SetResourceConstraints(Isolate* isolate, ResourceConstraints* constraints) {
^
4 errors generated.
之前好像有装过没有遇到问题。昨天刚升级了下 Xcode 的 Command Line Tools。然后就再也装不上了。
是 node-gyp 跪了?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决,
使用 nvm 把 nodejs 降级到 0.10.35 就好了。。。