Getting an error message

I am getting this error message:

Welcome to Node-RED
===================
1 Mar 15:47:44 - [info] Node-RED version: v2.2.2
1 Mar 15:47:44 - [info] Node.js  version: v17.6.0
1 Mar 15:47:44 - [info] Darwin 21.3.0 arm64 LE
1 Mar 15:47:44 - [info] Loading palette nodes
1 Mar 15:47:45 - [info] Dashboard version 3.1.6 started at /ui
1 Mar 15:47:45 - [info] Settings file  : /Users/server/.node-red/settings.js
1 Mar 15:47:45 - [info] Context store  : 'default' [module=memory]
1 Mar 15:47:45 - [info] User directory : /Users/server/.node-red
1 Mar 15:47:45 - [info] Projects directory: /Users/server/.node-red/projects
1 Mar 15:47:45 - [error] Uncaught Exception:
1 Mar 15:47:45 - [error] Error: listen EADDRINUSE: address already in use 0.0.0.0:1880
    at Server.setupListenHandle [as _listen2] (node:net:1331:16)
    at listenInCluster (node:net:1379:12)
    at doListen (node:net:1518:7)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

I believe in stems from another instance of node-red running at the same time.

I don't know how I got this going. I am on MacOS and followed the instructions how to start on boot using PM2.

If indeed I have multiple instances of Node-Red going, how do I know which one to turn off and how. I am using 127.0.0.1:1880 to see the UI. When using the terminal to get which node-red I get /opt/homebrew/bin/node-red I used this path when using PM2.

I don't really know what I am doing. I just follow instructions well...or so I thought. Any help would be greatly appreciated.

You are correct - the EADDRINUSE means it is already running on that port (1880). I'm not a big user of PM2 - but I think pm2 stop all should stop all pm2 activity, or you may have started it in another console ? in which case just ctrl-c in the console should stop it.

@dceejay Thank you for your quick response. Is there a better way to start on boot that you recommend?. It seems to be the preferred method for MacOS.
I tried pm2 stop all and started node-red again with node-red start and it all seems to be ok. Lost the ability to start on boot though.