Skip to content

Instantly share code, notes, and snippets.

@iddar
Last active January 2, 2016 20:41
Show Gist options
  • Select an option

  • Save iddar/9af0365b9003285066b3 to your computer and use it in GitHub Desktop.

Select an option

Save iddar/9af0365b9003285066b3 to your computer and use it in GitHub Desktop.
Setup node 4 on Intel Edison
cd ~
wget https://nodejs.org/dist/latest-v4.x/node-v4.2.4-linux-x86.tar.gz
mkdir temp
tar xvf node-v*.tar.gz -C ./temp
rm -rf node-v*
cd temp
mv node-v* node
mkdir node/etc
echo 'prefix=/usr/local' > node/etc/npmrc
mv node /opt/
chown -R root: /opt/node
mv /usr/bin/node /usr/bin/node_old
mv /usr/bin/npm /usr/bin/npm_old
ln -s /opt/node/bin/node /usr/bin/node
ln -s /opt/node/bin/npm /usr/bin/npm
node -v
cd ~
rm -rf temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment