Npm install couchbase fails on windows

Something in couchbase 2.3.2 broke installation on windows. Version 2.3.0 installs fine, but 2.3.2 fails during the prebuild --install script.

$ npm install couchbase

couchbase@2.3.2 install C:\dev\node_modules\couchbase
prebuild --install

prebuild info begin Prebuild version 6.1.0
prebuild info build Preparing to prebuild couchbase@2.3.2 for node 6.10.2 on win32-x64 using node-gyp
prebuild ERR! build error
prebuild ERR! stack Error: ENOENT: no such file or directory, open ‘C:\dev\node_modules\couchbase\6.10.2\x64\node.lib’
prebuild ERR! stack at Error (native)
prebuild ERR! not ok
prebuild ERR! build Error: ENOENT: no such file or directory, open ‘C:\dev\node_modules\couchbase\6.10.2\x64\node.lib’
prebuild ERR! build at Error (native)
npm WARN enoent ENOENT: no such file or directory, open ‘C:\dev\package.json’
npm WARN dev No description
npm WARN dev No repository field.
npm WARN dev No README data
npm WARN dev No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “couchbase”
npm ERR! Windows_NT 10.0.14393
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “couchbase”
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! couchbase@2.3.2 install: prebuild --install
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the couchbase@2.3.2 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:\dev\npm-debug.log

Hey @divinebovine,

Could you tell me what Windows version you are using, and whether you have the required Visual Studio version installed for your Node.js version?

Cheers, Brett

Hi! I’v got same problem.

I tried install couchbase SDK 2.3.2 on Windows 10 Ent with VS 2015 Ent. Node.js v6.10.2.

Workaround for this case - install prev version of SDK like that https://developer.couchbase.com/documentation/server/4.5/sdk/nodejs/start-using-sdk.html#story-h2-6
it’s works but newest build will better )

Hey @Brett19,

I’m running windows 10 enterprise, version 1607 build 14393.693 and I have Visual Studio 2015 Professional and Visual Studio 2017 Professional installed.

Thanks,
Daniel