OK, it looks like you have the right node and I may have jumped to that conclusion about node.
Let’s focus on this error then: “Error: Cannot find module 'pty.js'
”.
This library is located here: /var/www/ood/apps/sys/shell/node_modules/node-pty/
.
We import it with
const pty = require('node-pty');
Does that directory exist and is readable?