仅当我在机器人中实施音乐命令时,此命令才会发生。我尝试以多种方式多次重新安装ystr
。我删除了node_modules
文件夹并运行npm i
,然后尝试依次执行npm uninstall ystr
和npm i ystr
,但仍然没有任何操作。我更新了npm,并安装了ffmpeg并装有所需的必要模块。我正在使用YouTube搜索命令(youtube-simple-search
)和ytdl
。
这是我一直在终端中遇到的错误:
(node:10272) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at module.exports (C:\Users\monro\OneDrive\Documents\Code\mist-chromakey-bot\node_modules\ytsr\lib\main.js:18:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:10272) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10272) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.