../deps/lcb/src/config_static.h:28:23: fatal error: sys/types.h: No such file or directory

Hi, I am trying to do npm install for couchbase nodejs sdk 3.2.

I am using gcc 6.1.0 with node 12. But i keep getting this error:

prebuild-install WARN install tunneling socket could not be established, statusCode=407
make: Entering directory `/home/jenkins/workspace/workspace//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/analytics/analytics_handle.o
In file included from …/deps/lcb/gyp_config/linux/x64/config.h:242:0,
from …/deps/lcb/src/internal.h:25,
from …/deps/lcb/src/analytics/analytics_handle.cc:18:
…/deps/lcb/src/config_static.h:28:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>

How can i fix this ?

It sounds like you have some kind of minimized Linux distro, which likely isn’t in our compatibility list. sys/types.h is part of the OS distribution in any case where you’d be building software. This is where it comes from in Ubuntu:
http://manpages.ubuntu.com/manpages/trusty/man7/sys_types.h.7posix.html

We provide prebuilds for most of the compatible/supported platforms. Since yours went to build, it may not be one of those.

To fix it, can you use a listed, compatible Linux distro? Or if you think you are, check that the developer tools are installed?