Try to install coubase node.js fails on OSX 10.9

I'm trying the command to install node.js module couchbase on a OSX 10.9:

npm install couchbase

npm WARN package.json jshint@0.9.1 No repository field.
npm WARN package.json recess@1.1.6 No repository field.
npm http GET
npm http 304
npm http GET
npm http 304
> couchbase@1.0.1 install /Volumes/1TB/Estudos/node_modules/couchbase
> node-gyp rebuild
  CXX(target) Release/
In file included from ../src/
../src/couchbase_impl.h:64:10: fatal error: 'libcouchbase/couchbase.h' file not found
#include <libcouchbase/couchbase.h>
1 error generated.
make: *** [Release/] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/1TB/Estudos/node_modules/couchbase
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

I installed the libcouchbase using brew.

Is this a bug?

2 Answers

« Back to question.

this is a regression, but this github report was a successful workaround for me:

« Back to question.

You should install libcouchbase first

If you are using homebrew, it is as simple as

brew install libcouchbase

Otherwise, download latest tarball and do

./configure && make && sudo make install