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