Node js SDK 2.3.3 - no target error

Hi ,

I am trying to install new version 2.3.3 but getting error -

npm ERR! notarget No compatible version found: couchbase@2.3.3

npm install couchbase@2.3.3
npm ERR! Linux 2.6.32-642.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "couchbase@2.3.3"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: couchbase@2.3.3
npm ERR! notarget Valid install targets:
npm ERR! notarget 2.3.2, 2.3.0, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.12, 2.0.11, 2.0.10, 2.0.9, 2.0.8, 2.0.7, 2.0.6, 2.0.5, 2.0.4, 2.0.2, 2.0.1, 2.0.0, 2.0.0-dp1, 2.0.0-beta4, 2.0.0-beta2, 2.0.0-beta, 1.2.4, 1.2.2, 1.2.1, 1.2.0, 1.1.1, 1.1.0, 1.0.1, 1.0.0, 1.0.0-beta, 0.1.0, 0.0.12
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Hey @nilesh,

There was a failure on the initial attempt to upload v2.3.3 to npm which I had not noticed. It has been published now.

Cheers, Brett

Hi @brett19,

Thanks for quick response but I am still getting similar error (v 2.3.2) while installing latest version -2.3.3

npm install couchbase
npm WARN prefer global node-gyp@3.6.1 should be installed with -g
npm WARN prefer global node-ninja@1.0.2 should be installed with -g

> couchbase@2.3.3 install /home/nilesh/imdp/node_modules/couchbase
> prebuild --install

prebuild info begin Prebuild version 6.1.0
prebuild info build Preparing to prebuild couchbase@2.3.3 for node 6.10.2 on linux-x64 using node-gyp
make: Entering directory `/home/nilesh/imdp/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
  CXX(target) Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_cccp.o
make: g++: Command not found
make: *** [Release/obj.target/couchbase/deps/lcb/src/bucketconfig/bc_cccp.o] Error 127
make: Leaving directory `/home/nilesh/imdp/node_modules/couchbase/build'
prebuild ERR! build error
prebuild ERR! stack Error: `make` failed with exit code: 2
prebuild ERR! stack     at ChildProcess.onExit (/home/nilesh/imdp/node_modules/node-gyp/lib/build.js:285:23)
prebuild ERR! stack     at emitTwo (events.js:106:13)
prebuild ERR! stack     at ChildProcess.emit (events.js:191:7)
prebuild ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
prebuild ERR! not ok
prebuild ERR! build Error: `make` failed with exit code: 2
prebuild ERR! build     at ChildProcess.onExit (/home/nilesh/imdp/node_modules/node-gyp/lib/build.js:285:23)
prebuild ERR! build     at emitTwo (events.js:106:13)
prebuild ERR! build     at ChildProcess.emit (events.js:191:7)
prebuild ERR! build     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm WARN imdp@1.0.0 No repository field.
npm ERR! Linux 2.6.32-642.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "couchbase"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

do you have developer tools installed?

Hi @avsej,

I installed g++ but now getting another error

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 `/home/nilesh/imdp/node_modules/couchbase/build'
prebuild ERR! build error
prebuild ERR! stack Error: `make` failed with exit code: 2
prebuild ERR! stack     at ChildProcess.onExit (/home/nilesh/imdp/node_modules/node-gyp/lib/build.js:285:23)
prebuild ERR! stack     at emitTwo (events.js:106:13)
prebuild ERR! stack     at ChildProcess.emit (events.js:191:7)
prebuild ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
prebuild ERR! not ok
prebuild ERR! build Error: `make` failed with exit code: 2
prebuild ERR! build     at ChildProcess.onExit (/home/nilesh/imdp/node_modules/node-gyp/lib/build.js:285:23)
prebuild ERR! build     at emitTwo (events.js:106:13)
prebuild ERR! build     at ChildProcess.emit (events.js:191:7)
prebuild ERR! build     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm WARN imdp@1.0.0 No repository field.
npm ERR! Linux 2.6.32-642.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "couchbase"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

stuck on these same issue… Any luck ?

npm WARN acorn-jsx@5.3.1 requires a peer of acorn@^6.0.0 || ^7.0.0 || ^8.0.0 but none was installed.

npm WARN teenpatti@1.0.0 No repository field.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/@moonfroglabs/sage-lib/node_modules/fsevents):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 install: node-gyp rebuild

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! Darwin 19.6.0

npm ERR! argv “/Users/honeynihalani/.nvm/versions/node/v6.17.1/bin/node” “/Users/honeynihalani/.nvm/versions/node/v6.17.1/bin/npm” “install”

npm ERR! node v6.17.1

npm ERR! npm v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! couchbase@2.3.3 install: prebuild --install

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the couchbase@2.3.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
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs couchbase
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls couchbase
npm ERR! There is likely additional logging output above.