Skip to content

Commit

Permalink
Default to v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Jul 11, 2024
1 parent 070c40a commit a6d5a18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Installers/NodeRED/NodeREDSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NodeREDSetup extends BaseSetup {
"name" => "NodeRED",
"group" => "framework",
"enabled" => true,
"version" => "3.1.3",
"version" => "4.0.2",
"thumbnail" => "nr-thumb.png",
];

Expand Down
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dir=$PWD
if [ ! -d "/opt/node-red" ]; then

mkdir -p /opt/node-red
npm install -g --unsafe-perm node-red@3.1.3 --prefix /opt/node-red/v3.1.3
npm install -g --unsafe-perm node-red@4.0.2 --prefix /opt/node-red/v4.0.2

fi

Expand Down
2 changes: 1 addition & 1 deletion nodeapp/.noderedrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.3
v4.0.2
4 changes: 2 additions & 2 deletions nodeapp/nodered.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = {
* Specify the Node-RED version to use.
*
* Read the .noderedrc file and find the Node-RED version specified from it,
* or default to v3.1.3.
* or default to v4.0.2.
*/
let file = __dirname + '/.noderedrc';
let ver = 'v3.1.3';
let ver = 'v4.0.2';
if (fs.existsSync(file)) {
ver = fs.readFileSync(file, {encoding:'utf8', flag:'r'}).trim();
}
Expand Down

0 comments on commit a6d5a18

Please sign in to comment.