STF windows 下安装 stf 卡在 zmq 上

海爷的马仔 · 2019年03月05日 · 最后由 1239656678 回复于 2020年03月21日 · 2169 次阅读

zmq 找不到
ERR/cli:doctor 7652 [*] Unexpected error checking ZeroMQ: Error: Cannot find module 'zmq'
想 npm install zmq
出现问题

E:\stf\stf\node_modules\zmq>if not defined npm_config_node_gyp (node "E:\nvm\v10.15.2\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node
-gyp.js" rebuild ) else (node "E:\nvm\v10.15.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加 “/m” 开关。
binding.cc
win_delay_load_hook.cc
e:\stf\stf\node_modules\zmq\node_modules\nan\nan_maybe_43_inl.h(88): error C2039: 'ForceSet': is not a member of 'v8::Object' (compiling source file ..\binding.cc) [E:\stf\stf\nod
e_modules\zmq\build\zmq.vcxproj]
C:\Users\Administrator.node-gyp\10.15.2\include\node\v8.h(3243): note: see declaration of 'v8::Object' (compiling source file ..\binding.cc)
E:\stf\stf\node_modules\zmq\node_modules\nan\nan.h(816): warning C4996: 'node::MakeCallback': was declared deprecated (compiling source file ..\binding.cc) [E:\stf\stf\node_module
s\zmq\build\zmq.vcxproj]
C:\Users\Administrator.node-gyp\10.15.2\include\node\node.h(182): note: see declaration of 'node::MakeCallback' (compiling source file ..\binding.cc)
E:\stf\stf\node_modules\zmq\node_modules\nan\nan.h(830): warning C4996: 'node::MakeCallback': was declared deprecated (compiling source file ..\binding.cc) [E:\stf\stf\node_module
s\zmq\build\zmq.vcxproj]
C:\Users\Administrator.node-gyp\10.15.2\include\node\node.h(175): note: see declaration of 'node::MakeCallback' (compiling source file ..\binding.cc)
E:\stf\stf\node_modules\zmq\node_modules\nan\nan.h(844): warning C4996: 'node::MakeCallback': was declared deprecated (compiling source file ..\binding.cc) [E:\stf\stf\node_module
s\zmq\build\zmq.vcxproj]
C:\Users\Administrator.node-gyp\10.15.2\include\node\node.h(168): note: see declaration of 'node::MakeCallback' (compiling source file ..\binding.cc)
E:\stf\stf\node_modules\zmq\node_modules\nan\nan.h(1457): warning C4996: 'node::MakeCallback': was declared deprecated (compiling source file ..\binding.cc) [E:\stf\stf\node_modul
es\zmq\build\zmq.vcxproj]
C:\Users\Administrator.node-gyp\10.15.2\include\node\node.h(182): note: see declaration of 'node::MakeCallback' (compiling source file ..\binding.cc)
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:\nvm\v10.15.2\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "E:\nodejs\node.exe" "E:\nvm\v10.15.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\stf\stf\node_modules\zmq
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN @typescript-eslint/parser@1.4.2 requires a peer of eslint@5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zmq@2.15.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-03-04T16_54_25_994Z-debug.log

求助 怎么装 zmq 在 windows 或者是解决 npm install zmq

共收到 7 条回复 时间 点赞

为啥要在 windows 上安装呢?
官方的一句话:
On Windows you're on your own. In theory you might be able to get STF installed via Cygwin or similar, but we've never tried. In principle we will not provide any Windows installation support

stf Windows 装不了,我原来想在 cygwin 下装,问题是,nodejs 从某个低版本开始不支持 cygwin,所以 stf 就跑不起来。别试了。放弃吧。这个坑我踩过

卡农Lucas 回复

已经解决了 高了 2 个通宵 nnd

x 回复

因为喜欢折腾 0.0

楼主 window 环境下的 zmq 搞定的经验可以分享一下吗? 我一直卡在这里了

发帖子是希望可以得到别人的帮助,自己解决了也可以分享出来,这样也可以帮助到别人的。

可不可以分享一下方法

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册