Update Node-RED and Node.js
The following explains how to update Node-RED and Node.js manually, without a new installer from Objectif Lune.
Updates of the OL Connect Automate nodes are available through the Node-RED palette manager, accessed from the upper right menu.
Update Node.js
Download the installer of the latest LTS (long-term support) version of Node.js from nodejs.org.
Note: OL Connect Automate requires at least Node.js 20.19.5 (LTS for Windows).
The new version of Node.js must be installed to the path:
<OL Connect Automate install folder>\nodejs.
By default, the OL Connect Automate installer sets the <OL Connect Automate install folder> to:
.\Program Files\Objectif Lune\OL Connect Automate\
however, during installation a different folder may have been selected.
The version of Node.js can be verified from the command line after installation through the following command:
node -v
Update Node-RED
To update Node-RED from the command line:
- Stop the Node-RED service.
- Update Node.js if necessary (see note above).
-
Open the command prompt in administrator mode.
-
Run the following command:
Copynpm install -g --unsafe-perm --prefix "<OL Connect Automate install folder>\node-red" node-red@latestIf you want a specific Node-RED version, replace
@latestwith@theVersionNumber(e.g.,@4.0.1). -
Restart the Node-RED service.