Skip to content

Instantly share code, notes, and snippets.

@j-keck
Forked from StephenFluin/angular-install.sh
Created December 16, 2020 08:31
Show Gist options
  • Save j-keck/46b9627e1af3b10f1b08a6d2c95fd5e1 to your computer and use it in GitHub Desktop.
Save j-keck/46b9627e1af3b10f1b08a6d2c95fd5e1 to your computer and use it in GitHub Desktop.
Install Angular on a *nix system
# NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 10
# Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn global add @angular/cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment