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
You would need to use a slightly different command to install this beta version on DietPi.
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
Yeah that’s what i think i need,
was this working and you could update to the beta version?
Important note is that we install Node-RED as local module, not as global one (-g
flag), so one can control/update the main palette modules via web UI and with the nodered
user.
1 Like
where can i find the install script?
which script you are looking for exactly?
The software install script for item 122 Node-red
This is our “huge” dietpi-software
script
software_id=122 # Node-RED
if (( ${aSOFTWARE_INSTALL_STATE[$software_id]} == 1 )); then
Banner_Installing # Pre-configure user and data directory to allow a local service user install
# Data dir
[[ -d '/mnt/dietpi_userdata/node-red' ]] || G_EXEC mkdir /mnt/dietpi_userdata/node-red
# User
Create_User -G gpio,i2c,spi -d /mnt/dietpi_userdata/node-red nodered
# - Allow sudo calls
G_EXEC eval 'echo '\''nodered ALL=NOPASSWD: ALL'\'' > /etc/sudoers.d/nodered'
# Permissions
G_EXEC chown -R nodered:nodered /mnt/dietpi_userdata/node-red
# Service
cat << '_EOF_' > /etc/systemd/system/node-red.service
[Unit]
Description=Node-RED (DietPi)
This file has been truncated. show original
1 Like
You could have it done like I described above. This would have updated you as well without doing any changes to our script