No sorcery, just editing text.
Stepping back, the instructions at nodesource.com (
https://nodesource.com/blog/installing- ... ian-linux/) say to run:
Code: Select all
sudo curl -sL https://deb.nodesource.com/setup_8.x | bash -
This downloads and runs the setup script in one line. BUT you can download it like this:
Code: Select all
curl -sL https://deb.nodesource.com/setup_8.x > ./setup_8.x
Open this setup_8.x file in any text editor you choose.
Then you can edit the little table inside of the script that says who is Debian but not reporting as such. That table starts at line 258. At the end of the table (line 281), you can add a line like this:
Code: Select all
check_alt "MX" "Horizon" "Debian" "stretch"
This will fool the installer script into thinking that your MX machine is a Debian machine (which it is, but it doesn't report as such).
Then save the file and exit the editor.
After that, run the script:
This will set up the nodesource.com repository on your machine. Once that's done, run:
Code: Select all
sudo apt update && sudo apt install nodejs
and then you will have node.js 8.x on your machine.
Ninja'd by Stevo, but here's the explanation! :)