Failing to install couchbase on Docker Container


#1

I am trying to install the couchbase node package, but when beginning the install the following error occurs:

couchbase@2.2.2 install /src/node_modules/couchbase
prebuild --install

e[91msh: 1: prebuild: not found

e[0m
e[91mnpm info couchbase@2.2.2 Failed to exec install script
npm ERR! Linux 3.10.0-327.28.2.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! couchbase@2.2.2 install: `prebuild --install`
npme[0m
e[91m ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the couchbase@2.2.2 install script 'prebuild --install'.
npm ERR! 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 ERR!     npm owner ls couchbase
npm ERR! There is likely additional logging output above.

Am I missing something here? Do I need to make additional configurations? The node version is 4.5.0. Let me know if you need more info!


#2

Updating to Node v6 solved the problem


#3

i have a similar problem using node v10 inside docker, the couchbase dependencies fail to build, any solution for the problem??


#4

Hey @santiagodeveloper666,

This post is over 2 years old. You can follow a recent post about your exact issue here:

Cheers, Brett


#5

thanks brett19 :bowing_man::bowing_man::bowing_man: