Cannot build npm package for windows

I’m not able to compile Couchbase npm package for Windows. Using node v10.4.0 and npm 6.1.0
There are a number of compile errors. The full log is in a zip I uploaded to http://www.rwscripts.com/out.zip
The first error in the log is

c:\unity\fuzznet\modules\couchbase214\node_modules\nan\nan_maybe_43_inl.h(89): error C2039: ‘ForceSet’: is not a member of ‘v8::Object’ (compiling source file …\src\control.cc)c:\unity\fuzznet\modules\couchbase214\node_modules\nan\nan_maybe_43_inl.h(89): error C2039: ‘ForceSet’: is not a member of ‘v8::Object’ (compiling source file …\src\constants.cc)c:\unity\fuzznet\modules\couchbase214\node_modules\nan\nan_maybe_43_inl.h(89): error C2039: ‘ForceSet’: is not a member of ‘v8::Object’ (compiling source file …\src\couchbase_impl.cc) [C:\Unity\FuzzNet\Modules\Couchbase214\node_modules\couchbase\build\couchbase_impl.vcxproj]

Any idea how to fix this?

Hey @realworld666,

How are you installing the Node.js SDK? What version are you trying to install?

Cheers, Brett

I installed node using the Windows installer. I intended to install node 10 and the couchbase version should be 2.1.4

Run :
npm -g install download-npm-package
download-npm-package nan

Move to nan module directory
Change nan_maybe_43_ini.h ForseSet declaration
Move to node_modules directory

Run:
npm [-g] build nan

download pkg to install

Run:
npm [-g] build