Error installing from npm on Windows 7

The guide for installing the Node.js Couchbase library states:

On non-Windows platforms, you must have node-gyp installed and a build environment available because the Couchbase SDK module takes advantage of V8 add-on capabilities (written in C/C++). On Windows, the module comes with prebuilt libraries.

However I am getting node-gyp errors trying to install on Windows 7

> couchbase@2.0.2 install C:\projects\BasicExpressApp\node_modules\couchbase
> (node-gyp rebuild 2> builderror.log) || (exit 0)


C:\projects\BasicExpressApp\node_modules\couchbase>node "C:\nodejs\node_modules\
npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.t
argets(42,5): error MSB8020: The builds tools for Visual Studio 2010 (Platform
Toolset = 'v100') cannot be found. To build using the v100 build tools, either
click the Project menu or right-click the solution, and then select "Update VC+
+ Projects...". Install Visual Studio 2010 to build using the Visual Studio 201
0 build tools. [C:\projects\BasicExpressApp\node_modules\couchbase\build\deps\l
cb\cbsasl.vcxproj]

I am going to try to install the dependencies to get node-gyp working, but I wanted to let someone know that the npm install is not working as described.

Hey brentroady,

In many cases, receiving an error as part of the install process is fine. The install is meant to attempt to perform a custom build if possible, but to fall back to the pre-built binaries included when necessary. Does you’re install of the SDK still function properly?

Cheers, Brett

You are correct, the Couchbase library works fine even with the errors shown by npm. The reason Couchbase session handling in ExpressJS was not working was because I needed to add the connect-couchbase middleware.