Couchbase node.js client on AWS Linux fails to install

Viewed 39

I am trying to run a simple Couchbase node.js client. On AWS Linux box I run

sudo yum install gcc-c++ 

Then run

 npm install couchbase

but there are compilation errors such as

npm ERR!  lcb_sockdata_t *lcbio_C_ai2sock(lcbio_pTABLE io, struct addrinfo **ai, int *conerr);
npm ERR!                                                          ^~~~~~~~
npm ERR! In file included from /home/ec2-user/.cache/node-gyp/17.2.0/include/node/openssl/././archs/linux-x86_64/asm/include/openssl/ssl.h:21:0,
npm ERR!                  from /home/ec2-user/.cache/node-gyp/17.2.0/include/node/openssl/./ssl_asm.h:11,
npm ERR!                  from /home/ec2-user/.cache/node-gyp/17.2.0/include/node/openssl/ssl.h:4,
npm ERR!                  from ../deps/lcb/src/ssl/ssl_iot_common.h:26,
npm ERR!                  from ../deps/lcb/src/ssl/ssl_c.c:18:
npm ERR! /home/ec2-user/.cache/node-gyp/17.2.0/include/node/openssl/macros.h:155:4: error: #error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
npm ERR!  #  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
npm ERR!     ^~~~~

Any ideas on how to resolve this?

1 Answers
Related