Any suggestions as to how to find the installed version of NR? This is where I really wish the 'node-red-project' line showed the correct installed version. But that is a question we discussed a long time ago.
@Trying_to_learn, Sorry, No, NOT updating, that is NOT the question... need installed version.
I checked an older install, and the older method works on older installations...
# npm list -g node-red
/usr/lib
โโโ node-red@2.1.4
So something changed with how deployment is done, which apparently breaks the old method of determining the INSTALLED version.
You cannot have good auditing or QC or QA controls unless you can properly document the existing environment. This should be a standard feature any solution. A point I have made before, that reliance on 3rd party tool, i.e. npm, to find the installed version of an solution is not a good idea per se. Again, I suggest that $ node-red -v would be a good idea.
Speaking of where the version information is displayed, how does the flow wire editor, know what version is installed? Is it just a static string? Or dynamic value derived in some way? Clearly the editor shows the version installed, right?
That is useless... for automation or any realistic methodology of environment documentation. You can't go every device and manual look up the version, are you really suggesting that is a good method? You can't be.
Actually this an old issue... that should be address by development effort. You can only suggest what you can know of, of course. I found a work-around, that is now broken.
This is either because something changed with how deployment is done, presented, or something has changed with how npm or such works, or whatever the case. It does not change the fact or issue that NR should have some way via CLI or node, to report its current installed version information.
So, my questions stands... how does the wire editor know what version is installed, is it a static value? Or dynamic determined? Is there some way to present that information other than using npm? Or if npm is the only option? How can one find such that is not a human action dependent sequence? Something via CLI, that automation can invoke is what is needed. If there is a CLI method that works, like before, I can do the rest, via Ansible or whatever.
This is one of many reasons that I never install Node-RED globally but instead put it in its own folder with the userDir as a sub-folder. With that approach, you can simply query the package.json file of the parent folder when in Node-RED.
I expect that the Node-RED editor is passed the data from one of the node.js modules which of course are running in the correct context to be able to query its own package.json file.
Odd, localhost is resolving (local) to 127.0.0.1 and pingable. Something is tripping something up, this is going to be interesting to track down. A raw download via curl, connects and I see the html.
What exactly does npm list -g node-red return on your 2.1.4 install?
What version of npm/node.js are using using in those two installs? Did you set them up in the same way?
We haven't changed where Node-RED gets installed. But for some reason your 2.2.2 install using /usr/local/lib for its global path, and I would guess your 2.1.4 install will report /usr/lib.