node-rdkafka cannot be installed on windows 10

Created on 27 Mar 2019  路  6Comments  路  Source: Blizzard/node-rdkafka

Environment Information

  • OS: Windows 10
  • Node Version: 10.14.0
  • NPM Version: 6.1.0
  • C++ Toolchain: Visual Studio
  • node-rdkafka version: 2.6.1

Steps to Reproduce

npm install node-rdkafka

node_modules\nan\nan.h(1674): note: see declaration of 'Nan::Callback::Call' (compiling source file ..\src\connection.cc)
..\src\callbacks.cc(275): error C2589: '(': illegal token on right side of '::' [stuff\node_modules\node-rdkafka\build\node-librdkafka.vcxp
roj]
..\src\callbacks.cc(275): error C2059: syntax error: '::' [stuff\node_modules\node-rdkafka\build\node-librdkafka.vcxproj]

Additional context

It's a bit sad.

stale

Most helpful comment

Do we have any update on this issue? I have problems with version 2.6.1 of node-rdkafka on Windows 10 too.

All 6 comments

It's similar to #487 (which is closed but not fixed) with a different error.

@fungiboletus I don't think it's similar to that other issue. For the issue you're having see my PR here: https://github.com/Blizzard/node-rdkafka/pull/585 . It's a really quick fix.

Do we have any update on this issue? I have problems with version 2.6.1 of node-rdkafka on Windows 10 too.

Same issue over here. I also get a bunch of compilation errors with the new 2.7.0 version. 2.5.1 worked fine.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

2.7.1 installs fine on Windows. Please reopen if you're still having issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michallevin picture michallevin  路  5Comments

clChenLiang picture clChenLiang  路  3Comments

maxplanck76er picture maxplanck76er  路  3Comments

ivomirra picture ivomirra  路  3Comments

jacob-bennett picture jacob-bennett  路  4Comments