Last active
June 16, 2021 03:23
-
-
Save ops-gaurav/40a4fc3c6ccb91c1b0467056f56c6db1 to your computer and use it in GitHub Desktop.
install nvm
This file contains hidden or 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
#!/usr/bin/sh | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash | |
export NVM_DIR="/home/ubuntu/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
# install the node version | |
nvm install 14.15.4 | |
echo "Installed node version " && node --version | |
# configure the SSH for github | |
echo "Configuring the SSH for github..." | |
read -p "Provide your github email for peppercontent:" user_email | |
ssh-keygen -t rsa -N '' -C "$user_email" -f ~/.ssh/id_rsa | |
echo "Use this public key. Copy it for future reference" | |
cat .ssh/id_rsa.pub | |
echo "Share this public ssh key with github admin and keep it handy for future reference." | |
# creating config | |
echo "Host github.com" >> ~/.ssh/config | |
echo "User git" >> ~/.ssh/config | |
# configuring yarn | |
echo "Now installing yarn on your system..." | |
npm install --global yarn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment