在本地Windows系统以及远程linux服务器中均未安装node-rdkafka

时间:2019-05-30 05:32:53

标签: node.js npm librdkafka

node-rdkafka需要 Python 2.7 作为依赖项之一,并且它已经在系统中可用,并且还为其设置了路径。
根据我的了解,npm仍会引发与librdkafka相关的错误。

请在下面查找在Windows中安装node-rdkafka时引发的错误。

  

node-rdkafka@2.6.1安装C:\ Users \ mrdeo \ node_modules \ node-rdkafka
  node-gyp重建

     

C:\ Users \ mrdeo \ node_modules \ node-rdkafka>(如果未定义)   npm_config_node_gyp(节点“ C:\ Program   文件\ nodejs \ node_modules \ npm \ node_modules \ npm-lifecycle \ node-gyp-bin \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js”   重建)else(节点“ C:\ Program   文件\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”   重建)
一次构建一个此解决方案中的项目。至   要启用并行构建,请添加“ / m”开关。
  nuget中的librdkafka
cl:命令行警告D9025:覆盖   '/ GR-'与'/ GR'   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-libr   dkafka.vcxproj]
cl:命令行警告D9025:覆盖'/ GR-'   带有'/ GR'   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-libr   dkafka.vcxproj]
binding.cc
cl:命令行警告D9025:   用'/ GR'覆盖'/ GR-'   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-libr   dkafka.vcxproj]
cl:命令行警告D9025:覆盖'/ GR-'   带有'/ GR'   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-libr   dkafka.vcxproj]
callbacks.cc
common.cc
cl:命令   行警告D9025:用'/ GR'覆盖'/ GR-'   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-libr   dkafka.vcxproj]
config.cc
.. \ src \ callbacks.cc(103):警告   C4996:'Nan :: Callback :: Call':被宣布弃用   [C:\ Users \ mrdeo \ node_modules \ no   de-rdkafka \ build \ node-librdkafka.vcxproj]

  C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1740):注意:请参阅   'Nan :: Callback :: Call'
.. \ src \ callbacks.cc(275):错误C2589:'(':   '::'右侧的非法令牌   [C:\ Users \ mrdeo \ node_modules \ node-rdkaf   ka \ build \ node-librdkafka.vcxproj]
.. \ src \ callbacks.cc(275):错误   C2059:语法错误:'::'   [C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-librdkaf   ka.vcxproj]
.. \ src \ callbacks.cc(575):警告C4996:   'Nan :: Callback :: Call':已宣布弃用   [C:\ Users \ mrdeo \ node_modules \ no   de-rdkafka \ build \ node-librdkafka.vcxproj]

  C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1740):注意:请参阅   'Nan :: Callback :: Call'
.. \ src \ callbacks.cc(612):警告C4996:   'Nan :: Callback :: operator()':已宣布弃用   [C:\ Users \ mrdeo \ node_mod   ules \ node-rdkafka \ build \ node-librdkafka.vcxproj]

  C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1638):注意:请参阅   'Nan :: Callback :: operator()'
connection.cc
errors.cc

  kafka-consumer.cc
producer.cc
  C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ src / workers.h(42):警告   C4996:'Nan :: Callback :: Call':被声明为弃用(编译   源文件.. \ src \ connection.cc)   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-librdkafka.vcxproj   ]
C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1740):注意:请参阅   'Nan :: Callback :: Call'的声明(编译源文件..
  \ src \ connection.cc)
  C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ src / workers.h(42):警告   C4996:'Nan :: Callback :: Call':被声明为弃用(编译   源文件.. \ src \ kafka-consumer.cc)   
[C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-librdkafka.vcx   proj]
C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1740):注意:请参见   'Nan :: Callback :: Call'的声明(编译源文件..
  \ src \ kafka-consumer.cc)
  C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ src / workers.h(42):警告   C4996:'Nan :: Callback :: Call':被声明为弃用(编译   源文件.. \ src \ producer.cc)   [C:\ Users \ mrdeo \ node_modules \ node-rdkafka \ build \ node-librdkafka.vcxproj]
  C:\ Users \ mrdeo \ node_modules \ nan \ nan.h(1740):注意:请参阅   'Nan :: Callback :: Call'(编译源文件..
  \ src \ producer.cc)
.. \ src \ kafka-consumer.cc(560):警告C4996:   'v8 :: Value :: ToObject':已宣布弃用   [C:\ Users \ mrdeo \ node_modul   es \ node-rdkafka \ build \ node-librdkafka.vcxproj]

  c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'.. \ src \ kafka-consumer.cc(567)的声明:   警告C4996:'v8 :: Value :: ToObject':已声明为已弃用   [C:\ Users \ mrdeo \ node_modul   es \ node-rdkafka \ build \ node-librdkafka.vcxproj]

  c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'的声明.. \ src \ producer.cc(115):警告   C4996:'v8 :: Value :: ToObject':已被宣布弃用   [C:\ Users \ mrdeo \ node_modules \ nod   e-rdkafka \ build \ node-librdkafka.vcxproj]

  c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'的声明
topic.cc
  .. \ src \ producer.cc(122):警告C4996:'v8 :: Value :: ToObject':was   声明已弃用[C:\ Users \ mrdeo \ node_modules \ nod   e-rdkafka \ build \ node-librdkafka.vcxproj]

  c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'的声明.. \ src \ producer.cc(373):警告   C4996:'v8 :: Value :: ToObject':已被宣布弃用   [C:\ Users \ mrdeo \ node_modules \ nod   e-rdkafka \ build \ node-librdkafka.vcxproj]

  c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'的声明.. \ src \ producer.cc(396):警告   C4996:'v8 :: Value :: ToObject':被声明为deprecatedworkers.cc   [C:\ Users \ mrdeo \ node_m   odules \ node-rdkafka \ build \ node-librdkafka.vcxproj]

     

c:\ users \ mrdeo.node-gyp \ 10.15.3 \ include \ node \ v8.h(10046):注意:请参阅   'v8 :: Value :: ToObject'的声明
gyp错误!构建错误
gyp   呃!堆栈错误:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe失败,退出   代码:1
gyp ERR!堆栈在ChildProcess.onExit(C:\ Program   文件\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:262:23)
  糟糕!堆栈在ChildProcess.emit(events.js:189:13)
gyp   呃!堆栈位于Process.ChildProcess._handle.onexit   (internal / child_process.js:248:12)
gyp错误!系统Windows_NT   10.0.15063
gyp错误!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program   文件\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”   “重建”
gy ERR!电脑   C:\ Users \ mrdeo \ node_modules \ node-rdkafka
gyp错误!节点-v   v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp错误!不好
npm   WARN commons-example@0.0.1没有存储库字段。

npm ERR!码   ELIFECYCLE
npm错误! errno 1
npm错误! node-rdkafka@2.6.1   安装:node-gyp rebuild
npm错误!退出状态1
npm   ERR!
npm ERR!在node-rdkafka@2.6.1安装脚本处失败。
  npm ERR! npm可能不是问题。有可能   上面的其他日志记录输出。

0 个答案:

没有答案