Skip to main content
Angular CLI - Environment Setup

Angular CLI - Environment Setup

Prepare Node.js, npm, Angular CLI, and a compatible project workspace.

Angular CLI - Environment Setup illustration

How it works

Install a Node.js version compatible with the Angular version in the project, then use the package manager and lockfile selected by that workspace. A global CLI can create projects, while npm scripts or a local CLI version improve reproducibility. Check official compatibility tables before upgrading.

Good practice

  • Check the local Angular CLI version and run commands from the intended workspace.
  • Review angular.json targets and builders before assuming optional commands are configured.
  • Use the package manager and lockfile selected by the project.
  • Review generated files, configuration changes, and build output before committing or deploying.

Further reading: Tutorialspoint: Angular CLI - Environment Setup · Current Angular CLI reference · Workspace configuration.