Skip to content

Setup

Versioning

To check global angular version.

ng version

Update angular cli globally

npm uninstall -g @angular/cli
npm install -g @angular/cli@latest

Update a local project

rm -rf node_modules
npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest
npm install

Check anything else that may need to be updated or migrated here

Creating a project

ng new <project-name>

Select sass (scss)

Install Angular material

ng add @angular/material

Serving

# Optional port
ng serve --port 4401

Comments