Skip to content

Instantly share code, notes, and snippets.

Last active Feb 17, 2017
What would you like to do?
Getting started with Angular 2
# Both the CLI and generated project have dependencies that require Node 6 or higher, together with NPM 3 or higher.
# On Ubuntu 16
# sudo apt-get update
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs # this installs both node and npm
# sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g @angular/cli
ng help
# sudo npm install extract-text-webpack-plugin@2.0.0-rc.0 --save-dev #
ng new world-domination # my new project
cd world-domination
#npm install # use npm install --no-optional if you are getting npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevent for npm --version 3.10.8
ng serve # You should get your app up and running on http://localhost:4200
# ng serve -host # If you want to developing out on a ec2 for some reason. http://ec2ip:4200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment