Cannot install couchbase v2.2.3 on offline computer


I have a timeout error when I try to install couchbase client on an offline computer (windows server 2008 R2) . We have a local npm repo and the couchbase package is there but it fails during the prebuild step (node v6.7.0):

> prebuild --install

prebuild WARN install connect ETIMEDOUT
prebuild WARN install got an error, rolling back install
prebuild ERR! configure error
prebuild ERR! stack Error: connect ETIMEDOUT
prebuild ERR! stack     at Object.exports._errnoException (util.js:1036:11)
prebuild ERR! stack     at exports._exceptionWithHostPort (util.js:1059:20)
prebuild ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1
prebuild ERR! not ok
prebuild ERR! build Error: connect ETIMEDOUT
prebuild ERR! build     at Object.exports._errnoException (util.js:1036:11)
prebuild ERR! build     at exports._exceptionWithHostPort (util.js:1059:20)
prebuild ERR! build     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fseve
npm WARN express-rest@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "couchbase" "--registry" "http://private.url/nexus/content/groups/publicnpm/" "--no-bi
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3

npm ERR! couchbase@2.2.3 install: `prebuild --install`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the couchbase@2.2.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.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\BuildAgent\work\node.git\express-rest\npm-debug.log

Is there a reason you need 2.2.3 specifically? That’s a pretty old version at this point.

@matthew.groves I think he is referring to the version of the Node.JS SDK where 2.2.3 is the latest one.

1 Like

Isn’t it the last version ?

looks like npm can’t reach this and another IP address which apparently is required. This IP belongs to cloudflare, so I’m taking a long shot and saying maybe it is trying to fetch something from the regular npm repos as dependencies/metadata?

Hey Guys,

It looks like it is attempting to download the prebuilt binaries from GitHub Releases (which is the address). In the case of an offline server, you should use npm install couchbase --build-from-source to force a compile rather than attempting to download prebuilt binaries.

Cheers, Brett