Angular2 step by step 2 – How to install latest Node.js and NPM

By W.ZH Oct 2016

Install latest Node.js, from Node.js website:

First, make sure you have a C++ compiler. Open the terminal and install the build-essential and libssl-dev packages if needed. By default, Ubuntu does not come with these tools — but they can be installed in the command line.

Use apt-get to install the build-essential package and libssl-dev:

sudo apt-get install build-essential checkinstall

sudo apt-get install libssl-dev

You can install and update Node Version Manager, or nvm, by using cURL:

curl -o- | bash

You will be asked to close and reopen the terminal. To verify that nvm has been successfully installed after you reopen the terminal, use:

command -v nvm

That command will output nvm if the installation worked.

To download, compile and install the latest version of Node:


Install latest NPM

There’s a pretty robust install script at You can download that and run it.

Here’s an example using curl:

curl -L | sh


Angular2 step by step – 1. Install the Node.js

By W.Zh Oct 2016

Our history and current projects mostly based on the Java/Spring/JSP to do most things. And at the front end side, we use EasyUI, KendoUI, GoJS, Jquery,  and a little bit angular JS 1 to realize the page render, control and data loading. But with the Angular 2 released in last month, I have decided to start using the angular2 in future projects. As we already have the Spring controllers working as the RESTful service in system. so Front end in future will totally be detached from the Java server side easily!!!

Of course we are going to face many challenges  in future about the new tech pick up, old UI migration, interface integrations , but embracing the trend of the detached front end will benefit all teams and it will be fun, especially the Typescript and Angular2 natively have too much common with Java stacks.

I will start to write a series of articles about the angular2 when we adopt it. let us start from installing:

To install Node.js and npm,  in your terminal of Ubuntu:

$ node -v
$ npm -v