Pages

Tuesday 29 November 2016

Installing angular-cli in ubuntu 16.04

                                                           Angular-cli is very useful command line utility to develop angular 2 based applications. In this tutorial i am gonna show you guys how you can install angular cli in ubuntu 16.04. So first of all let me check the version of nodejs installed into my system.

so here is my node version at the time of writing this blog post.


I installed node using node version manager. Follow this tutorial link to install and learn more about node and npm. So now lets get angular-cli installed in our ubuntu operating system.


Running this command with -g flag will install angular-cli globally on your operating system. After running this command you will get access to a command line utility named ng.

So now lets run ng help in the command line & it will give the following output.


lets check the version of angular-cli i installed at the time of writing this post.


Now lets create a test application using angular-cli for that run the following command shown in the picture below.



ng new test_app command will go and create a folder named test app in which it creates some file and installs dependencies via npm. now lets run this project by going into the project and running the command shown in the picture below.



after running command ng serve in the root of the project visit the link http://localhost:4200/ in the browser and voila!


1 comment:

  1. Really nice blog post.provided a helpful information.I hope that you will post more updates like this AngularJS 5 Online Training Hyderabad

    ReplyDelete