How-to update to latest beta? Node-RED 3.0.0-beta DietPi

How-to update to latest beta?

I tried;

cd /mnt/dietpi_userdata/node-red/
sudo systemctl stop node-red
sudo npm install -g --unsafe-perm node-red@next
sudo systemctl start node-red

seen this line "https://registry.npmjs.org/@node-red/editor-client/-/editor-client-3.0.0-beta.3.tgz 34711"
on a http fetch status 200 ( got the latest release)

the output is;
removed 6 packages, changed 294 packages, and audited 295 packages in 3m

36 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 8.10.0 -> 8.12.2
npm notice Changelog: Release v8.12.2 · npm/cli · GitHub
npm notice Run npm install -g npm@8.12.2 to update!
npm notice

after starting Node-Red still on Version 2.2.2

Its not very clear what command you run to install it.
From what you have shared .. Stopping and starting the service will not update it.

In the top post of the Node-RED 3.0.0-beta.3 released thread it mentions how to install it.

sudo npm install -g --unsafe-perm node-red@next

Is this command what you tried ?

oops yeah this what i did, made a copy past error in my post

` 278  cd /mnt/dietpi_userdata/node-red/
  279  systemctl stop node-red
  280  sudo systemctl stop node-red
  281  sudo npm install -g --unsafe-perm node-red@next
  282  sudo systemctl start node-red
`

what do you get when you run
npm list -g node-red

dietpi@server01:~$ npm list -g node-red
/usr/local/lib
└── node-red@3.0.0-beta.3

npm notice
npm notice New minor version of npm available! 8.10.0 -> 8.12.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.12.2
npm notice Run npm install -g npm@8.12.2 to update!
npm notice

it seems to be installed .. have you tried clearing your browser's Cache files

Yep, I did using Brave and Chrome both still show 2.2.2

installed Firefox, it to shows version 2.2.2

  1. Are you running in Docker ?

  2. If you stop the service sudo systemctl stop node-red and
    just run it from terminal with node-red what do you get ?

OMG, thats it, I guess i have node red installed twice now,
20 Jun 13:49:18 - [info] Node-RED version: v3.0.0-beta.3
beta 3 is up and running, no flows fresh install.

so i guess this is not the way to update on Dietpi
this did a install in User directory : /home/dietpi/.node-red

and not in /mnt/dietpi_userdata/node-red/

I might be wrong, and I don't immediately see a definitive answer in the documentation, but (not actually on a DietPi) to install a node-red version it's apparently

cd ~
sudo npm install -g --unsafe-perm node-red@next

whereas to install a specific version of a node it would be

cd ~/.node-red
npm i node-red-dashboard@2.24.1-beta

No idea why one needs cd ~/.node-red while the other needs sudo, nor about DietPi mount points.

not using the -g tag, this will work

systemctl stop node-red
cd /mnt/dietpi_userdata/node-red
sudo -u nodered npm i --no-audit node-red@next
systemctl start node-red
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.