Run First Application in Angular 2 (Angular 2 base project).


Run First Application in Angular 2 (Angular 2 base project).


è    Need to install node.js from below location.
(Install Latest version of node.js)

è    Run below command from node.js command prompt

npm install –g @angular/cli

ng new myapp

cd myapp

ng serve

Now you will see blow output.




Now run your application from localhost:4200  (mention in above command output). You may see different output base on version.



Posted in Labels: | 0 comments

How to upgrade Node.Js to latest version

How to upgrade Node.Js to latest version.

For Linux/Max

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Instead of stable you can also specify a desired version.

Sudo n 0.8.21

For windows

You can update npm using below command.

npm update npm -g

However to update node.js better you will reinstall from node.js website.

Posted in Labels: | 0 comments