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.

    Help needed: Automatic Node Version Reference

    Scheduled Pinned Locked Moved Core System
    3 Posts 3 Posters 3.4k Views 3 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.
    • MichMichM Offline
      MichMich
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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