Skip to content

Instantly share code, notes, and snippets.

@ben196888
Last active November 28, 2018 00:53
Show Gist options
  • Save ben196888/14b32bc1718b6246e85adc7fd2b00ebc to your computer and use it in GitHub Desktop.
Save ben196888/14b32bc1718b6246e85adc7fd2b00ebc to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
# Install nodejs and npm
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum install -y -q nodejs
# Install yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
sudo yum install -y -q yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment