Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when installing couchjs #1089

Closed
Mtinkering opened this issue Mar 7, 2015 · 2 comments
Closed

bug when installing couchjs #1089

Mtinkering opened this issue Mar 7, 2015 · 2 comments

Comments

@Mtinkering
Copy link

Hi,

I am trying to install couchjs while using iojs
$npm install -g couchjs

Then i got this error

../src/fibers.cc:140:3: error: no member named 'SetResourceConstraints' in namespace
'v8'; did you mean simply 'SetResourceConstraints'?
v8::SetResourceConstraints(isolate, constraints);
^~~~~~~~~~~~~~~~~~~~~~~~~~
SetResourceConstraints
../src/fibers.cc:139:7: note: 'SetResourceConstraints' declared here
void SetResourceConstraints(Isolate* isolate, ResourceConstraints* constraints) {
^
1 error generated.
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/stevennguyen/.nvm/versions/io.js/v1.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:169:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/Users/stevennguyen/.nvm/versions/io.js/v1.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/stevennguyen/.nvm/versions/io.js/v1.3.0/lib/node_modules/couchjs/node_modules/fibers
gyp ERR! node -v v1.3.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Build failed
npm ERR! Darwin 13.4.0
npm ERR! argv "/Users/stevennguyen/.nvm/versions/io.js/v1.3.0/bin/iojs" "/Users/stevennguyen/.nvm/versions/io.js/v1.3.0/bin/npm" "install" "-g" "couchjs"
npm ERR! node v1.3.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: node ./build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.

But it's fine when i switch to node 0.12

Anyone has any idea ? thanks

@Fishrock123
Copy link
Contributor

Looks like couchjs depends on node-fibers which has not be updated to use a compatible NaN version for native addons.

See also: #456

Try to either: get the author to update it, or use an actively maintained fork if it exists, alternatively using a more active module if necessary. :)

@Mtinkering
Copy link
Author

Thanks a lot @Fishrock123 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants