@schlomm said in install/upgrade scripts updated to detect and use NVM:
For my Magic Mirror Instances I try to use/install the node version installed by MagicMirror,
that is what the script does… reads package.json engines, and uses that.
on some systems, you might get 22.20.0 instead of 22.18.0
you don’t have to do it manually , as the script will handle it.
BUT if you used nvm for some reason, then it puts code in the users home folder/.nvm
and first in the PATH…
n puts code in /usr/local/bin , but if nvm is first… oops…
so , n did its thing, but no change…
use the tool the user picked, quite a pain to get nvm to run FROM a script…