I am having some issues with simple I/O tests for Node.js. I can’t seem to find an input library that will work with the input/output testing.
When I use readline-sync:
stty: when specifying an output style, modes may not be set
/home/runner/Lisk-Buzz/node_modules/readline-sync/lib/read.sh: 49: cannot create /dev/tty: No such device or address
stty: invalid argument ‘-f’
Try 'stty --help' for more information.
Error: The current environment doesn't support interactive reading from TTY.
stty: when specifying an output style, modes may not be set
/home/runner/Lisk-Buzz/node_modules/readline-sync/lib/read.sh: 49: cannot create /dev/tty: No such device or address
stty: invalid argument ‘-f’
Try 'stty --help' for more information.
at readlineExt (/home/runner/Lisk-Buzz/node_modules/readline-sync/lib/readline-sync.js:221:19)
at tryExt (/home/runner/Lisk-Buzz/node_modules/readline-sync/lib/readline-sync.js:258:15)
at /home/runner/Lisk-Buzz/node_modules/readline-sync/lib/readline-sync.js:363:15
at _readlineSync (/home/runner/Lisk-Buzz/node_modules/readline-sync/lib/readline-sync.js:433:5)
at getValidLine (/home/runner/Lisk-Buzz/node_modules/readline-sync/
When I use prompt-sync:
Error: ENXIO: no such device or address, open '/dev/tty'
at Object.openSync (node:fs:585:3)
at prompt (/home/runner/Lisk-Buzz/node_modules/prompt-sync/index.js:67:10)
at Object.<anonymous> (/home/runner/Lisk-Buzz/index.js:12:9)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
It is worth noting that my project runs correctly for each of these libraries. It is simply the I/O Testing that is failing.