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
`