Robotjs 安装问题
最编程
2024-04-06 16:51:56
...
Robotjs 是github上比较常用的库, 用于nodejs/Electron 应用开发. Windows 上安装robotjs 容易遇到问题. 与Robotjs自己的文档 Documentation - RobotJS --- It is that easy 形成鲜明对比; 记录一下我安装遇到的问题:
1. 使用npm 安装遇到问题:
npm install robotjs
you need to install the latest version of visual studio including the "Desktop Development with c++" workload. For more information consult teh documentation at: https://github.com/nodejs/node-gyp#on-windows
解决方法:
1. 先安装 Windows-build-tools
npm install --global --production windows-build-tools
2. 再安装 “Desktop development with c++” 组件
3. 之后再次使用 npm install robotjs 可以安装成功
希望本文可以帮助到大家;
上一篇: 将机器人js引入elecctron的陷阱
下一篇: Android blockly 信息
推荐阅读