Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup initial environment on Ubuntu 16.04 LTS
#!/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