node.js - zeromq安装python节点和电子
问题描述
我在尝试使用 zeromq 时遇到此错误,我不知道是什么,我安装了所有东西,但错误一直存在!
Los proyectos de esta solución se van a compilar de uno en uno. Para habilitar la compilación en paralelo, agregue el modificador "-m".
D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(382
,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using
the v140 build tools, please install Visual Studio 2015 build tools. Alternatively, you may upgrade to the current Vis
ual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:
\Users\MAATTZ\Desktop\electron-python-example-master\node_modules\zeromq\build\zmq.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\MAATTZ\Desktop\electron-python-example-master\node_modules\zeromq
gyp ERR! node -v v12.8.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeromq@4.6.0 install: `node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zeromq@4.6.0 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\MAATTZ\AppData\Roaming\npm-cache\_logs\2020-02-07T03_27_46_759Z-debug.log```
解决方案
推荐阅读
- contacts - 雅虎是否停止了他们的联系人 API?
- javascript - 请向我解释一下回调函数,就像我 5 岁一样
- java - 如何从 Spring Batch Step 访问执行上下文?错误:没有可用于作业范围的上下文持有者
- python - Python 桌面应用程序 - 在 OAuth2 PKCE 流程中关闭浏览器
- python - PyCharm 没有启动
- jmeter - Jmeter oracle连接问题
- c# - AspNet Dotnet Core API 调用 Get 带参数
- build - 如何解析管道脚本中的人工触发器输出?
- authentication - 一个生产 IIS 服务器询问凭据,其他服务器完全接受 Windows 身份验证
- jenkins - Jenkins 管道无法在 pod 中执行 docker 命令