javascript - 当我在 Heroku 中启动我的 Discord Bot 时,npm-clipboardy 不起作用
问题描述
我在 Heroku 控制台中收到此错误:
Couldn't find the xsel binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel
我制作了我的不和谐机器人,并试图在 Heroku 中启动它,但剪贴板似乎不起作用。我使用了 Windows 10、Node 14.18.3 和 Clipboardy 2.3.0
如果有剪贴板的解决方案或替代方案,请提供帮助。
解决方案
推荐阅读
- resttemplate - 模拟 bean 无法在单元测试中注入依赖关系
- javascript - 用克隆元素替换元素后事件不起作用
- php - 为什么我在升级后未定义身份验证用户提供程序 [eloquent.multiple]
- bash - 数组的值未正确与数字进行比较
- c# - 如何在paint.net 中获取当前活动图像的名称?
- c# - ASP。带有 cookie 身份验证的 Net Core 2.2:当未授权仅 API 控制器时如何避免页面重定向
- elasticsearch - Elasticsearch 中的多字段聚合
- email - 在后端为前端重置密码的最佳方法是什么?
- linux - 编译器命令是什么意思?
- javascript - Javascript字符串参数未定义