I will mark this now as solved.
That is on the basis that this only happened when I was running nodebb as a service.
I have changed nothing other than removing the service and the plugin page loads no problem. I will try later and add the service again and see if i can reproduce the error.