How to debug Function "Error: Module not allowed"

My pi is setup with user testpi. therefore

/home/testpi/.node-red/settings.js

is the file I have been working with. I only asked about the other after you rightly checked if I was editing the right one. The problem was I did have a sudo in the node-red start (didn't mean to and probably muscle memoried with the keyboard in error)! Removing that and it works. Beyond that, I also wasn't aware admin privilege's would use different settings.js and glazed over the /root as my brain said it really meant the home/... location. I hate when I do that, even more when I waste others' time in the process.

Looks like I am up and running until I fall on my face again :face_with_head_bandage:
Thanks for dragging me to the solution!

1 Like

Do you realise that the command node-red start runs node red using a flows file called start.json? Perhaps you meant to use the command node-red-start which runs node red as a service with the default flows file (usually .node-red/flows.json).

Good to know. I should be running them as a service. My notes are not always literals as opposed to my code formatted or quoted blocks that are. Either way, I will check how it is being started to confirm. Thanks