Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created December 17, 2017 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenmazaika/1512d662bfae09379a75e8307525f55b to your computer and use it in GitHub Desktop.
Save kenmazaika/1512d662bfae09379a75e8307525f55b to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Please be patient while we set up your development environment..."
echo "Installing NVM..."
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash &> /dev/null
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
echo "Installing Node and NPM..."
if hash node 2>/dev/null; then
nvm install node --reinstall-packages-from=node &> /dev/null
else
nvm install node &> /dev/null
fi
command -v yarn >/dev/null 2>&1 || {
echo "Installing Yarn..."
npm install yarn -g &> /dev/null
}
echo "----------------------------------------"
echo " _____ _ _ "
echo " | ___(_)_ __ ___| |__ ___ ___ ___ "
echo " | |_ | | '__/ _ \ '_ \ / _ \/ __|/ _ \\"
echo " | _| | | | | __/ | | | (_) \__ \ __/"
echo " |_| |_|_| \___|_| |_|\___/|___/\___|"
echo "----------------------------------------"
echo "DONE, Your development environment is setup!"
echo "Open a new terminal to use development environment."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment