Skip to content

Instantly share code, notes, and snippets.

@sabas1080
Created April 26, 2015 20:16
Show Gist options
  • Save sabas1080/aad5140015a9b1042c6f to your computer and use it in GitHub Desktop.
Save sabas1080/aad5140015a9b1042c6f to your computer and use it in GitHub Desktop.
easy installation of io.js on a rasberry pi
# io.js on raspberry pi
installing io.js is now really easy thanks to the io.js and nvm team.
They provides prebuilt binaries for arm.
## get the system up to date
io.js require packages that are not available on the standard (Wheezy) need to change to Jessie.
Update your package url
```
$ sudo nano /etc/apt/sources.list
```
in the opened file comment the Wheezy package line and add
```
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
```
Now you need to do a full upgrade
```
$ sudo apt-get update && apt-get upgrade && apt-get autoremove
```
## install node version manager
if you have already nvm installed, please be sure to use the latest version (min v0.23.0, ```nvm --version```). two install options are available :
curl script
```
curl https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash
```
or make a regular installation following [nvm](https://github.com/creationix/nvm)'s instructions
## install io.js binaries
```
$ nvm install iojs
```
will download binaries for io.js and npm and symlink them to node and npm command.
Go play with es6 !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment