Cannot build npm package for windows


#1

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?


#2

Hey @realworld666,

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

Cheers, Brett


#3

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