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:
-
Download the installer of the latest LTS (long-term support) version of Node.js from nodejs.org.
-
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.
-
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:
- 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.