Error trying to install client on centos with node.js v5.5.0

I am getting this error when i try to install couch base client with node.js 5.5.0 i am getting the following error

npm ERR! couchbase@2.1.3 install: prebuild --install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the couchbase@2.1.3 install script ‘prebuild --install’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the couchbase package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prebuild --install

any help will be well appreciated.

Hey @chaddy012,

Could you kindly provide us with more of the build log so we can identify the cause?

Cheers, Brett

couchbase@2.1.3 install /usr/local/xxx/node_modules/couchbase
prebuild --install

prebuild WARN install Prebuilt binaries for node version v5.5.0 are not available
make: Entering directory /usr/local/xxx/node_modules/couchbase/build' COPY ../deps/lcb/include/libcouchbase/libuv_io_opts.h COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/plugin-libuv.c COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/plugin-internal.h COPY ../deps/lcb/include/libcouchbase/plugins/io/libuv/libuv_compat.h CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_cccp.o CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_file.o CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_http.o CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_mcraw.o CC(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/confmon.o CC(target) Release/obj.target/couchbase/deps/lcb/src/http/http.o CC(target) Release/obj.target/couchbase/deps/lcb/src/http/http_io.o CC(target) Release/obj.target/couchbase/deps/lcb/src/jsparse/parser.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbht/lcbht.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/connect.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/ctx.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/iotable.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/ioutils.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/manager.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/protoctx.o CC(target) Release/obj.target/couchbase/deps/lcb/src/lcbio/timer.o CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/compress.o CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/forward.o CC(target) Release/obj.target/couchbase/deps/lcb/src/mc/mcreq.o CC(target) Release/obj.target/couchbase/deps/lcb/src/mcserver/mcserver.o CC(target) Release/obj.target/couchbase/deps/lcb/src/mcserver/negotiate.o CC(target) Release/obj.target/couchbase/deps/lcb/src/netbuf/netbuf.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/cbflush.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/counter.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability-cas.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability-seqno.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/durability.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/get.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/observe-seqno.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/observe.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/touch.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/pktfwd.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/remove.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/stats.o CC(target) Release/obj.target/couchbase/deps/lcb/src/operations/store.o CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/bigalloc.o CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/chunkalloc.o CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/libcalloc.o CC(target) Release/obj.target/couchbase/deps/lcb/src/rdb/rope.o CC(target) Release/obj.target/couchbase/deps/lcb/src/strcodecs/base64.o CC(target) Release/obj.target/couchbase/deps/lcb/src/strcodecs/url_encoding.o CC(target) Release/obj.target/couchbase/deps/lcb/src/vbucket/ketama.o CC(target) Release/obj.target/couchbase/deps/lcb/src/vbucket/vbucket.o CC(target) Release/obj.target/couchbase/deps/lcb/src/views/docreq.o CC(target) Release/obj.target/couchbase/deps/lcb/src/views/viewreq.o CC(target) Release/obj.target/couchbase/deps/lcb/src/bootstrap.o CC(target) Release/obj.target/couchbase/deps/lcb/src/callbacks.o CC(target) Release/obj.target/couchbase/deps/lcb/src/cntl.o CC(target) Release/obj.target/couchbase/deps/lcb/src/connspec.o ../deps/lcb/src/connspec.c: In function 'lcb_connspec_convert': ../deps/lcb/src/connspec.c:614: warning: array subscript is above array bounds CC(target) Release/obj.target/couchbase/deps/lcb/src/dump.o CC(target) Release/obj.target/couchbase/deps/lcb/src/getconfig.o CC(target) Release/obj.target/couchbase/deps/lcb/src/gethrtime.o CC(target) Release/obj.target/couchbase/deps/lcb/src/handler.o CC(target) Release/obj.target/couchbase/deps/lcb/src/hashset.o CC(target) Release/obj.target/couchbase/deps/lcb/src/hashtable.o CC(target) Release/obj.target/couchbase/deps/lcb/src/hostlist.o CC(target) Release/obj.target/couchbase/deps/lcb/src/instance.o CC(target) Release/obj.target/couchbase/deps/lcb/src/iofactory.o CC(target) Release/obj.target/couchbase/deps/lcb/src/legacy.o CC(target) Release/obj.target/couchbase/deps/lcb/src/list.o CC(target) Release/obj.target/couchbase/deps/lcb/src/logging.o CC(target) Release/obj.target/couchbase/deps/lcb/src/newconfig.o CC(target) Release/obj.target/couchbase/deps/lcb/src/nodeinfo.o CC(target) Release/obj.target/couchbase/deps/lcb/src/packetutils.o CC(target) Release/obj.target/couchbase/deps/lcb/src/retrychk.o CC(target) Release/obj.target/couchbase/deps/lcb/src/retryq.o CC(target) Release/obj.target/couchbase/deps/lcb/src/ringbuffer.o CC(target) Release/obj.target/couchbase/deps/lcb/src/settings.o CC(target) Release/obj.target/couchbase/deps/lcb/src/simplestring.o CC(target) Release/obj.target/couchbase/deps/lcb/src/timings.o CC(target) Release/obj.target/couchbase/deps/lcb/src/utilities.o CC(target) Release/obj.target/couchbase/deps/lcb/src/wait.o CXX(target) Release/obj.target/couchbase/deps/lcb/src/n1ql/n1ql.o CXX(target) Release/obj.target/couchbase/deps/lcb/src/n1ql/params.o ../deps/lcb/src/n1ql/params.cc: In function 'lcb_error_t lcb_n1p_mutation_token(lcb_N1QLPARAMS*, const lcb_MUTATION_TOKEN*)': ../deps/lcb/src/n1ql/params.cc:95: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'lcb_U64' CC(target) Release/obj.target/couchbase/deps/lcb/plugins/io/select/plugin-select.o AR(target) Release/obj.target/deps/lcb/libcouchbase.a COPY Release/libcouchbase.a CC(target) Release/obj.target/httpparser/deps/lcb/contrib/http_parser/http_parser.o AR(target) Release/obj.target/deps/lcb/libhttpparser.a COPY Release/libhttpparser.a CC(target) Release/obj.target/genhash/deps/lcb/contrib/genhash/genhash.o AR(target) Release/obj.target/deps/lcb/libgenhash.a COPY Release/libgenhash.a CC(target) Release/obj.target/cjson/deps/lcb/contrib/cJSON/cJSON.o AR(target) Release/obj.target/deps/lcb/libcjson.a COPY Release/libcjson.a CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/client.o CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/common.o CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/cram-md5/hmac.o CC(target) Release/obj.target/cbsasl/deps/lcb/contrib/cbsasl/src/cram-md5/md5.o AR(target) Release/obj.target/deps/lcb/libcbsasl.a COPY Release/libcbsasl.a CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-c.o CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-sinksource.o CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy-stubs-internal.o CXX(target) Release/obj.target/snappy/deps/lcb/contrib/snappy/snappy.o AR(target) Release/obj.target/deps/lcb/libsnappy.a COPY Release/libsnappy.a CXX(target) Release/obj.target/jsoncpp/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.o In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83, from ../deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp:205: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function 'virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)': /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function 'virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)': /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)': /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function '_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)': /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti make: *** [Release/obj.target/jsoncpp/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.o] Error 1 make: Leaving directory/usr/local/xxx/node_modules/couchbase/build’
prebuild ERR! build error
prebuild ERR! stack Error: make failed with exit code: 2
prebuild ERR! stack at ChildProcess.onExit (/usr/local/xxx/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! stack at emitTwo (events.js:100:13)
prebuild ERR! stack at ChildProcess.emit (events.js:185:7)
prebuild ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
prebuild ERR! not ok
prebuild ERR! build Error: make failed with exit code: 2
prebuild ERR! build at ChildProcess.onExit (/usr/local/xxx/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! build at emitTwo (events.js:100:13)
prebuild ERR! build at ChildProcess.emit (events.js:185:7)
prebuild ERR! build at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Anyone? Help please!!!:fearful:

Any solutions here? I am facing the same problem.

Hey @madhur,

It looks like there is an issue with building for v5.5.0 on your platform. I suggest trying Node.js v6.0.0 instead.

Cheers, Brett