You are on page 1of 2

Installing Angular 7 on ubuntu 18.

04

Refrences:

https://angular.io/guide/quickstart
https://nodejs.org/en/download/package-manager/
https://github.com/angular/angular-cli
https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/?utm_source=hashnode.com#

Steps:

1. Install Node.js® and npm if they are not already on your machine.

Then install the Angular CLI globally.

npm install -g @angular/cli

2. Check versions

ng -v; node -v; npm -v or npm info angular-cli

3. Step 2. Create a new project

swebshet@swebshet:~$ ng new my-angular


? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? SCSS [ http://sass-
lang.com/documentation/file.SASS_REFERENCE.html#syntax ]

Successfully initialized git.

It takes time to set up a new project; most of it is spent installing npm


packages.

Step 3: Serve the application

cd my-angular/
swebshet@swebshet:~/my-angular$ ng serve --open

or option will automatically open your browser on http://localhost:4200/

You might also like