Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9350

【toio.js】Windowsでexampleを動かしたときに出たエラーの対処法

$
0
0
エラー内容  toio.jsのサンプルコードを動かしてみようとしたところ、id-readerとchaseは問題なく動いたが、keyboard-controlだけ動かない。 git_bash $ yarn example:keyboard-control yarn run v1.22.10 $ node examples/keyboard-control noble warning: unknown handle 69 disconnected! (node:11800) UnhandledPromiseRejectionWarning: TypeError: process.stdin.setRawMode is not a function at main (C:\toio.js\examples\keyboard-control\index.js:49:17) (Use `node --trace-warnings ...` to show where the warning was created) (node:11800) 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:11800) [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. 対処法  git bashではなくコマンドプロンプトで動かしたらキーボードでtoioを動かすことができた。 コマンドプロンプト yarn example:keyboard-control yarn run v1.22.10 $ node examples/keyboard-control

Viewing all articles
Browse latest Browse all 9350

Trending Articles