Last active
March 4, 2017 07:28
-
-
Save enzinier/d25f98e2c67aa140572157d8d46b1d08 to your computer and use it in GitHub Desktop.
Setup initial environment on Ubuntu 16.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install Node 6.x (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
node -v | |
# Install yarn (https://yarnpkg.com/en/docs/install#linux-tab) | |
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-get update && sudo apt-get install -y yarn | |
yarn -v | |
# Install npm | |
sudo apt-get install -y npm | |
npm -v | |
# Install react native client (https://facebook.github.io/react-native/docs/getting-started.html) | |
sudo npm install -g react-native-cli | |
# Install watchman | |
sudo apt-get install -y autoconf automake build-essential python-dev | |
git clone https://github.com/facebook/watchman.git | |
cd watchman | |
git checkout v4.7.0 # the latest stable release | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
cd .. | |
sudo rm -rf watchman | |
watchman -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment