From 5613c440bf81961b915c160557c933ff43c57e72 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 3 Feb 2020 12:48:32 +0100 Subject: [PATCH] Install nodejs and yarn --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 92799a1e..25c75337 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,6 +41,17 @@ jobs: image: ubuntu-1604:201903-01 steps: - checkout + - run: + # The images ubuntu-1604:201903-01 comes with preinstalled nvm, which does not work well with non-login shells + name: Uninstall nvm + command: rm -rf "$NVM_DIR" ~/.npm ~/.bower + - run: + name: Install nodejs and yarn + command: | + curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - + echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list + sudo apt update && sudo apt install nodejs yarn - run: name: Version information command: echo "node $(node --version)"; echo "yarn $(yarn --version)"