@@ -427,12 +427,13 @@ case $yn in
427427 nvm alias default $NODE_VERSION > /dev/null 2>&1
428428 echo " Now using --- $( nvm current) " 2>&1 | $SUDO tee -a /var/log/nodered-install.log >> /dev/null
429429 ln -f -s $NODERED_HOME /.nvm/versions/node/$( nvm current) /lib/node_modules/node-red/red.js $NODERED_HOME /node-red
430- echo -ne " Update Node.js $NODE_VERSION $CHAR "
430+ echo -ne " Update Node.js $NODE_VERSION $CHAR - Using nvm is NOT recommended/supported. "
431431 elif [[ $( which n) ]]; then
432432 echo " Using n" | $SUDO tee -a /var/log/nodered-install.log >> /dev/null
433433 echo -ne " Using N to manage Node.js +\r\n"
434+ echo -ne ' NOTE: Using n is NOT RECOMMENDED. Please use a standard nodejs install.\r\n'
434435 if $SUDO n $NODE_VERSION 2>&1 | $SUDO tee -a /var/log/nodered-install.log >> /dev/null; then CHAR=$TICK ; else CHAR=$CROSS ; fi
435- echo -ne " Update Node.js $NODE_VERSION $CHAR "
436+ echo -ne " Update Node.js $NODE_VERSION $CHAR - Using n is NOT recommended/supported. "
436437 elif [[ " $( uname -m) " =~ " i686" ]] || [[ " $( uname -m) " =~ " x86_64" && " $( getconf LONG_BIT) " =~ " 32" ]]; then
437438 echo " Using 32bit nodejs" | $SUDO tee -a /var/log/nodered-install.log >> /dev/null
438439 if [[ " $tgtl " != " None" ]]; then
@@ -812,12 +813,12 @@ case $yn in
812813 echo " "
813814 echo " sudo chown root:root ~/.node-red/settings.js"
814815 echo " "
815- elif ! [[ $( stat --format ' %G' ~ /.node-red/settings.js) = " root" ]]; then
816- echo " - Change the ownership of its settings file to 'root' to prevent unauthorised changes:"
817- echo " "
818- echo " sudo chown root:root ~/.node-red/settings.js"
819- echo " "
820- fi
816+ # elif ! [[ $(stat --format '%G' ~/.node-red/settings.js) = "root" ]]; then
817+ # echo " - Change the ownership of its settings file to 'root' to prevent unauthorised changes:"
818+ # echo ""
819+ # echo " sudo chown root:root ~/.node-red/settings.js"
820+ # echo " "
821+ # fi
821822 if [ " $EUID " == " 0" ]; then
822823 echo " - Do not run Node-RED as root or an administraive account"
823824 echo " "
0 commit comments