Read the statement by Michael Teeuw here.
Help needed: Automatic Node Version Reference
-
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).
-
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/) -
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.