shell Angular commands

# determine the versions installed
node --version
npm --v
ng --version

# install relevant Angular packages
npm install -g typescript
npm install -g @angular/cli@19

# ng refers to the Angular CLI
ng new [project-name]
ng generate component [folder]/[component-name]
ng generate class [folder]/[class-name]

# build/run Angular project
ng build
ng serve

# run tests
ng test
ng test --include=**/time.component.spec.ts // specific test file

# run linting (if applicable)
ng lint
Common NPM commands for use within Angular projects.

Updated: Wednesday 5th November 2025, 23:01pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.