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).
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/)