I seem to be getting a very similar problem on MacOs. I keep getting the error - "No such file or directory" when I use getProcPort and never get the process number.
I tried running the netstat command and do not get the following (abridged):
Proto Local Address Foreign Address State
tcp 127.0.0.1:1338 *:* LISTEN
tcp 127.0.0.1:1337 *:* LISTEN
tcp *:3717 *:* LISTEN
No process numbers or names.
Is there any other approach I can take?