gitlab-build-images/scripts/install-node
2017-02-13 14:10:16 -06:00

11 lines
343 B
Bash
Executable file

#!/bin/bash
set -xeo pipefail
# add official debian repos for node and yarn
curl -sS -L https://deb.nodesource.com/setup_7.x | bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y nodejs yarn