Can't compile node.js driver Couchnode on Windows

I can’t compile node.js driver Couchnode on Windows 7. I use node-gyp for compile node.js extension and have latest compiled libcouchbase.
I try # npm install couchbase
and have errors
Creating library D:\Projects\Serverside\node_modules\couchnode\build\Release\couchbase_impl.lib and object D:\Projects\Serverside\node_modules\couchnode\build\Release\couchbase_impl.exp
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_get_cookie [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_set_store_callback [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_set_touch_callback [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]

Anybody compiled extension for node.js couchbase on Windows?

Sorry for the late answer, I have created a blog post explaining how to use Couhbase and Node on Windows:
I am not building it from source just using libcouchbase and npm.
Let me know if this helps, or if you need more information.

Hello tgrall,

Thanks very much for your great blog. I get an error during the installation of ‘npm install couchbase’:

node-gyp rebuild

c:\JetBrains WebStorm\CouchBaseTest\NodejsTest\node_modules\couchbase>node “c:\P
rogram Files\nodejs\node_modules\npm\bin\node-gyp-bin\…\node_modules\node-g
yp\bin\node-gyp.js” rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “c:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js” "rebuild"
gyp ERR! cwd c:\JetBrains WebStorm\CouchBaseTest\NodejsTest\node_modules\couchba
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

Could you please provide some suggestions?


Are you building against the appropriate libcouchbase dlls? Building with a 32bit node.js/npm and a 64bit libcouchbase will fail.

Hey, I’ve written a blog post which might solves your problem: