#!/bin/bash

RETCODE=$(fw_exists ${IROOT}/node-v0.10.8.installed)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_get http://nodejs.org/dist/v0.10.8/node-v0.10.8-linux-x64.tar.gz
fw_untar node-v0.10.8-linux-x64.tar.gz

touch ${IROOT}/node-v0.10.8.installed
#!/bin/bash

RETCODE=$(fw_exists ${IROOT}/node-v0.10.8.installed)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_get http://nodejs.org/dist/v0.10.8/node-v0.10.8-linux-x64.tar.gz
fw_untar node-v0.10.8-linux-x64.tar.gz

# Upgrade npm to avoid https://github.com/npm/npm/issues/4984
export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
export PATH=$PATH:$NODE_HOME/bin

${NODE_HOME}/bin/npm install -g npm

touch ${IROOT}/node-v0.10.8.installed
Upgrade npm to avoid bug
Upgrade npm to avoid bug
