iris/_benchmarks/benchmarker/scripts/node-install.sh
2019-06-23 17:32:37 +03:00

7 lines
210 B
Bash

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