Install nodejs and yarn

This commit is contained in:
Simon Warta
2020-02-03 15:32:31 +01:00
parent 95599c54e7
commit 5613c440bf
+11
View File
@@ -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)"