MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    install/upgrade scripts updated to detect and use NVM

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 98 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Do not disturb
      sdetweil
      last edited by

      I am seeing more cases where users have used nvm to change their node version.
      which conflicts with the tool the scripts use (n, which is a nodejs version of nvm)

      but the two tools store the node versions in different places, which causes failures on update and install

      I have updated the tools to detect if nvm is installed and use it
      otherwise use n

      keep an eye out for any install or upgrade issues related to nodejs version

      thanks for any feedback

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Reply Quote 0
      • S sdetweil marked this topic as a regular topic
      • S Offline
        schlomm @sdetweil
        last edited by

        @sdetweil Thanks for your effort! For my Magic Mirror Instances I try to use/install the node version installed by MagicMirror, but yeah -“nvm” ist a great tool in the node ecosystem.

        Thanks for your work and the updates script ♥️

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @schlomm
          last edited by sdetweil

          @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…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy