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
UnborN:
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
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/
jbudd
20 June 2022 14:33
10
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
system
Closed
5 July 2022 15:15
12
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.