What I'm trying to do is something like this:
node x.js | node y.js
The file x.js is just printing a string:
console.log("hi");
The file y.js is intended to get that string "hi" via process.stdin and do something with it.
But it does not work. zsh (my shell) throws this error: zsh: command not found:  node.
What am I doing wrong?
 
    