Install node-red 1.0. on new pi

I am installing to a new raspberry pi

I read to install nr 1.0. use sudo npm install -g --unsafe-perm node-red@next

but is that to upgrade from say 0.20.7

do I need to use

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

first then upgrade with sudo npm install -g --unsafe-perm node-red@next ?

If you want to get to v1.0.0-beta4, yes do it thats way.

Just for info, you can use npm install -g --unsafe-perm node-red to drop back and then use the @next version to go back to the v1

ok thanks