I have downloaded angular 2 application from this link:
https://github.com/aravindfz/firstAngular2App
How to run this application? Which angular cli version install to run angular 2 application? I tried from some questions stackoverflow but not working properly.guys this question is not duplicate..Please understand. Anyone can give clear details? I need step by step procedure.
If you cloned the repo and did nothing else, there are a few things you need to do before you can run the app. Since I don't know how much web development you have done, I'm going to include things some people will think unnecessary.
package.json
.npm install
. This will download and install all the dependencies (which could rather disturbingly add up to a few hundred Megabytes). You may experience timeout errors if you're behind a corporate proxy server. That's not something you can fix as of 2018. Just connect using something else and try again.index.html
is located and run this command: ng serve
. If ng
cannot be found, you may need to install it. To do so, execute npm install --save-dev @angular/cli
. Now it should work. If not, close your command prompt/terminal window, open a new one and try ng serve
again.ng serve
is finished compiling, you should be able to view your app by opening http://localhost:4200 in your favourite browser.And that's it!
Here's a bonus tip: Take the time to work through the official Angular Quick Start. It really is a fantastic guide and will get you skilled up much quicker than just hacking it ever will.
Good luck.