As we are poking in the dark here, we might as well try with node 10.3. It should be OK to use a binary compatible version instead of precisely the one used in the electron version itself.
It might not work as it is not exactly the same error. We'll see.
Searching for possible solutions to this problem, I found https://github.com/Microsoft/node-pty/issues/238 and https://github.com/Microsoft/node-pty/issues/201 .
As we are poking in the dark here, we might as well try with node 10.3. It should be OK to use a binary compatible version instead of precisely the one used in the electron version itself.
It might not work as it is not exactly the same error. We'll see.