problem Node.js couchbase sdk
I am having problems running Node.js couchbase. I have
built libcouchbase C library but for reason it can find it.
throw new Error('Failed to locate couchnode native binding');
I am use ubuntu 13.10..
npm install couchbase
requires node-gyp and also g++ (and maybe others). However, the install fails *quietly* if g++ is not installed.
You may discover this by inspecting the builderror.log ...
~/node_modules/couchbase $ cat builderror.log make: g++: Command not found make: *** [Release/obj.target/couchbase_impl/src/couchbase_impl.o] Error 127 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) etc.
Fix by issuing:
sudo apt-get install g++ npm install couchbase
Many thanks to Brett for leading me to the solution :)
Brett: can the install be made to fail loudly if prerequisits are not present?