Created
March 13, 2018 16:04
-
-
Save alpercelik/4dacb746c2e64e8ee3fe2e87be7bc319 to your computer and use it in GitHub Desktop.
Install nodejs to latest on Intel Edison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove existing version of node | |
$ opkg remove nodejs --force-depends | |
// let's go to /bin | |
$ cd /bin | |
// create node build folder and move into it | |
$ mkdir node && cd node | |
// download the version of node you'd like (just replace the version number) | |
// full list here Previous Releases | Node.js | |
// make sure to select the `linux-x86` | |
$ wget http://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-x86.tar.gz | |
// unzip and delete zip | |
$ tar -xvf node-v5.0.0-linux-x86.tar.gz | |
$ rm node-v5.0.0-linux-x86.tar.gz | |
// move everything out of the folder | |
$ mv node-v5.0.0-linux-x86/* . | |
$ rm -r node-v5.0.0-linux-x86 | |
// add the new version of node to the $PATH so we can run `npm` and `node` | |
$ PATH=$PATH:/bin/node/bin | |
Should be good to go – I'm open to any ideas for a better solution! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another solution: Homebridge on Intel Edison. Yours looks cleaner.