Recently I had a problem. My interface was always disconnected. I don't know what caused this phenomenon, and I don't know if anyone else had similar problems.
I use PM2 to control Node-red on a centos7 system. I see in the list that Node-red is online, but the page (IP :port) cannot be opened. To be exact, it cannot be opened after a period of time, not at the beginning.I need to execute "PM2 start" before the node-red page can open again. My program flow on the other machine is version 1.0.2 and it works without any exceptions.
[TAILING] Tailing last 15 lines for [node-red] process (change the value with --lines option)
/root/.pm2/logs/node-red-error.log last 15 lines:
0|node-red | (node:10879) ExperimentalWarning: queueMicrotask() is experimental.
0|node-red | (node:10898) ExperimentalWarning: queueMicrotask() is experimental.
Thank you very much for your reply: I saw a post on the Internet saying that I need to upgrade Node. I upgraded Node from 11 to 12, but the problem is still there. Do I need to upgrade to 14.17.1 (the latest version of Node.js) and Node-red to the latest version?Or if you have other solutions, please give us some guidance. Thank you very much.
Sorry, I can't upload my file due to insufficient permissions, so I can only copy part of it.I have tried to close the Node-red running in PM2 and directly command to run Node-red, which runs normally and redeployments the stream, but once the page crashes, there is no output, and the page can not be opened by reloading, so I need to close the program and execute Node-red again.
I also have a question for you. What command should Node-red use to upgrade to the specified version?
I used "sudo NPM install -g --unsafe-perm node-red" to upgrade to the latest version every time, however, it wasn't what I wanted, I wanted to use the specified version, but when I used something like:"Sudo NPM install -g --unsafe-perm node-red v1.2.8",I found the order to be wrong.I remember trying to write something like this, or "npm install node-red vx.x.x". I can't remember what it was, but it didn't work.