MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Help needed: Automatic Node Version Reference

    Core System
    3
    3
    2323
    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.
    • MichMich
      MichMich Admin last edited by

      The current installer script, has a hard coded reference to the latest node version: https://github.com/MichMich/MagicMirror/blob/v2-beta/installers/raspberry.sh#L21

      This means that whenever a new Node version is released, the installer breaks until we update the version reference.

      If somebody knows a good way to solve this, feel free to send a pull request.

      And while you’re at it. It might be a good idea to only install Node when it’s not present or below a certain version (v5).

      1 Reply Last reply Reply Quote 0
      • J
        jordi2830 last edited by paviro

        I have an API on my website which retrieves the latest version directly from the NodeJS website.
        Feel free to use it: http://api.jordidepoortere.com/nodejs-latest/

        Example usage in the script:
        NODE_LATEST=$(curl -l http://api.jordidepoortere.com/nodejs-latest/)

        1 Reply Last reply Reply Quote 0
        • D
          Demond last edited by

          The commands in nodenv are implemented in scripts. While, commands from nvm are implemented in functions, which means all the 4000+ line of code have to be parsed on shell startup and increases the shell init time dramatically. nodenv initializes much faster.

          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy