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 ng test --watch=false --browsers=ChromeHeadless --code-coverage // code coverage report # run linting (if applicable) ng lint
Common NPM commands for use within Angular projects.
Updated: Tuesday 25th November 2025, 05:58pm
There are 0 comments
Comments are currently closed.