By Gary simon - Oct 19, 2016
In this article, I'll show you a quicker method of getting up and running by cloning the Angular 2 repo.
First, if you prefer being shown the process via video, check out the video below:
Alright, so let's do this...
Click here to visit the Quickstart Repo. This will provide you with a readme containing some important information. First, it will include the usual prerequisites such as Nodejs and NPM. You will also need to install Git so that you can execute the following command:
git clone https://github.com/angular/quickstart my-proj cd my-proj
After executing this command, give it a minute or two and it will effectively download the quickstart project to your specified project folder.
Now, because we cloned a repo instead of having to manually create a mess of files like Manual method we covered earlier required, we can jump straight to npm install.
Give it some time, and in a few moments you'll have your node_modules folder and everything else ready to go!
And of course, if you're ready to start developing right away, go ahead and run:
That's it. Much quicker than the manual method, right? Well, there's actually a faster method. And that's what we'll be covering in the third method of installing Angular 2 through the Angular-cli.