iris/_benchmarks/benchmarker/scripts/node-install.sh

7 lines
210 B
Bash
Raw Normal View History

INSTALL_DIR=$1
VERSION=$2
cd $INSTALL_DIR
curl http://nodejs.org/dist/node-$VERSION.tar.gz | tar xz --strip-components=1
./configure --prefix=$INSTALL_DIR
make install
curl https://www.npmjs.org/install.sh | sh