NODEJS v12.13.0 on IBM i Fails With "Error: setRawMode EINVAL"
Hello All,
I am attempting to run NODEJS (interactively, in QSH/QP2TERM) on IBM i (V7R2).
When i execute “node” (to access REPL), node terminates with the following error:
node -v
v12.13.0
\$
node
Welcome to Node.js v12.13.0.
Type ".help" for more information.
events.js:187
throw er; // Unhandled 'error' event
^
Error: setRawMode EINVAL
at ReadStream.setRawMode (tty.js:73:31)
at REPLServer.Interface._setRawMode (readline.js:277:16)
at REPLServer.Interface (readline.js:236:10)
at new REPLServer (repl.js:579:13)
at Object.exports.start (repl.js:844:16)
at Object.createRepl [as createInternalRepl] (internal/repl.js:46:21)
at internal/main/repl.js:34:9
Emitted 'error' event on ReadStream instance at:
at ReadStream.setRawMode (tty.js:73:10)
at REPLServer.Interface._setRawMode (readline.js:277:16)
[... lines matching original stack trace ...]
at internal/main/repl.js:34:9 {
errno: 'EINVAL',
code: 'EINVAL',
syscall: 'setRawMode'
}
\$
** I get this same error with Node 10 (v10.16.3 ) as well. Any assistance/direction will be greatly appreciated!
**My apologies if i missed where this issue has already been issued/resolved by the community.
Comments (3)
-
-
reporter Hi Kevin,
Thanks for your quick response. I will try from an SSH session as well and let you know if i encounter any issues. Also, i tried your “
PASE_STDIO_ISATTY=N
“ tip (from Issue#80) and so far REPL appears to be working (with v12.13.0.)
-
- changed status to resolved
- Log in to comment
It seems that running the REPL in a 5250 session has not worked since Node 10. Even in Node 8, it’s a painful experience:
I’d recommended using SSH instead of 5250.