Update Node.js and Node-RED

The following explains how to update Node.js and Node-REDmanually, 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

To manually update Node.js:

  1. 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). To run Node-RED 5, Node.js 22 is required, and Node.js 24 is recommended/
  1. Delete all files in the node.js folder. This is a sub-folder of the OL Connect Automate folder.

  • By default, the OL Connect Automate installer set the <OL Connect Automate> folder path to:

    \Program Files\Objectif Lune\OL Connect Automate\

    however, during installation, a different folder may have been selected.

  1. Install the new version of Node.js into the node.js folder.

The version of Node.js can be verified from the command line, after installation, through the following command:

node -v

Update Node-RED

To manually update Node-RED from the command line:

  1. Stop the Node-RED service.
  2. Update Node.js if necessary (see note above).
  3. Open the command prompt in administrator mode.

  4. Run the following command:

    Copy
    npm install -g --unsafe-perm --prefix "<OL Connect Automate install folder>\node-red" node-red@latest

    If you want a specific Node-RED version, replace @latest with @theVersionNumber (e.g., @4.0.1).

  5. Restart the Node-RED service.