Step1: Install NPM – https://nodejs.org/en/
Step 2: Install Angular CLI
npm install -g angular-cli
Step 3: Create application with following command,
ng new myfirst_app
Step 4: Now to host your application in localhost
ng server