Skip to content

Instantly share code, notes, and snippets.

@mashhoodr
Last active May 30, 2016 11:23
Show Gist options
  • Save mashhoodr/ece0fbc553a5e8fb6f037bbe2695ae0b to your computer and use it in GitHub Desktop.
Save mashhoodr/ece0fbc553a5e8fb6f037bbe2695ae0b to your computer and use it in GitHub Desktop.
Setup angular-cli on ubuntu14
# navigate to the project folder
# git pull latest version
# make sure user has permission to write in that folder
# install latest node
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install angular-cli -g
sudo npm install -g [email protected] # make sure its version 0.8.1 latest ones breaks
sudo npm install -g typescript
sudo typings install
# copy the angular-cli folder locally - check path to your project
cp -r /usr/lib/node_modules/angular-cli /var/www/rlpweb/node_modules/angular-cli
npm install
sudo ng build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment