I found out that Node-Red can be installed on a Mac so I decided to try it as I found a step-by-step YouTube video about how to install it.
I got it to install per the video, and it was running, but when I got to about the 2:30 minute mark it said to hit Ctrl-C then type "exit" to end the Terminal session.
In Terminal I tried Ctrl+C but noting happened. Likewise, typing "exit" (which I did without the quotes) did nothing. So after bookmarking http://127.0.0.1:1880/ in Chrome I quit the Terminal app. Now if I try to go to http://127.0.0.1:1880/ in Chrome it says:
The site can't be reached. 127.0.0.1 refused to connect.
Does anyone know how I can get back into Node-Red?
That worked. I tried that Ctrl-C again in the Terminal window but it didn't work. So do I have to run Terminal and start node-red every time I want to use it?
Am I correct that I would have to keep a browser with that page open permanently to use any flow I create in it?
Finally, I saw someplace there were some Hubitat things I would want to bring in also. (I don't know if it is code for Hubitat or flows or what).
@Stu_The_K - I have Nodered on a Mac and as @erktrek said, you have to leave it running in the terminal. To auto-start it, you have to install PM2. See the following link for instructions - Starting Node-RED on boot : Node-RED.
Are you sure you are not doing command+c (instead of control+c)? Before I used the PM2 option, I would just minimize the terminal window and leave it running.
I copied the LaunchAgent code but have a couple of questions:
Do I replace <YOU> with my name, including the < and > or did I insert my name between the brackets? i.e.
<string>/Users/<Stuart>/
or
<string>/Users/Stuart/
Also, I believe I should store it in:
/Library/LaunchAgents/
The very first line of the hidden code is the path and name that I am using...
/Library/launchagents/NodeRedServer.plist
you should use the same directory and the name can be the same as I use.. why not ? but of course the best reason not to is because you're you.
and: <string>/Users/Stuart/.node-red/node-red.log
is correct, assuming you did a generic/standard install of Node-Red. Beyond the obscure format of a plist, the bulk of what's in it is familiar directory path details. You can look in the node red directory and see if you have a log file in use. Just copy that directory path and log file name into the plist. It's the format and spelling of a plist that I'm passing to you.