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:

  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.