• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 2.9k 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.
  • M Offline
    MichMich Admin
    last edited by May 5, 2016, 8:28 AM

    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 May 5, 2016, 5:10 PM May 5, 2016, 5:00 PM

      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 Jan 12, 2022, 10:37 AM

        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 Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy