Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

error running from cron #141

Open
sfarrell5123 opened this issue Nov 21, 2019 · 0 comments
Open

error running from cron #141

sfarrell5123 opened this issue Nov 21, 2019 · 0 comments

Comments

@sfarrell5123
Copy link

[h265ize]: [verbose] Handling keypresses...
[h265ize]:
- message: process.stdin.setRawMode is not a function
- stack: TypeError: process.stdin.setRawMode is not a function
at /usr/local/lib/node_modules/h265ize/h265ize:485:23
at h265ize.handleKeypress (/usr/local/lib/node_modules/h265ize/h265ize:453:12)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
From previous event:
at Object.h265ize.runCli (/usr/local/lib/node_modules/h265ize/h265ize:47:10)
at Object. (/usr/local/lib/node_modules/h265ize/h265ize:1701:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

I put this in line 485 fixes it

if (process.stdin.isTTY) {
process.stdin.setRawMode(true);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant