System Requirements
Before installing Angular Bases, ensure your system meets the following requirements:Node.js
Version 18.x or higherRequired for running Angular CLI and development tools
Package Manager
npm 11.x+, yarn, or pnpmnpm 11.10.0 is the configured package manager
Operating System
Windows, macOS, or LinuxCompatible with all major operating systems
Memory
4GB RAM minimum8GB recommended for smooth development
Angular 21 requires Node.js version 18.19.0 or newer. Check your version with
node --version.Installation Steps
Verify Node.js Installation
First, check that Node.js and npm are installed on your system:You should see output like:
Clone the Repository
Clone the Angular Bases repository to your local machine:Alternatively, you can fork the repository first if you plan to make contributions.
Install Project Dependencies
Install all required dependencies using your preferred package manager:This process will install:Core Dependencies:
@angular/core(21.1.0) - Angular framework@angular/common(21.1.0) - Common Angular directives and pipes@angular/router(21.1.0) - Client-side routing@angular/forms(21.1.0) - Form handlingrxjs(7.8.0) - Reactive programming library
@angular/cli(21.1.4) - Angular command-line interface@angular/compiler-cli(21.1.0) - Angular compilertypescript(5.9.2) - TypeScript compilervitest(4.0.8) - Unit testing framework
Installation typically takes 1-3 minutes depending on your internet connection and system performance.
Configure Your IDE (Optional)
For the best development experience, configure your IDE with Angular support:
Visual Studio Code (Recommended)
Install these extensions:- Angular Language Service - IntelliSense for Angular templates
- Angular Snippets - Code snippets for Angular development
- Prettier - Code formatting (already configured in project)
.vscode/ with recommended extensions and debugging settings.Other IDEs
- WebStorm: Built-in Angular support, no additional setup needed
- Sublime Text: Install TypeScript and Angular packages
Verify Installation
After installation, verify everything is set up correctly:Check Angular CLI
Verify the Angular CLI is working:You should see output showing Angular CLI 21.1.4 and Angular 21.1.0.
Start Development Server
Launch the development server:Wait for the compilation to complete. You should see:
Open in Browser
Navigate to
http://localhost:4200/ in your browser.You should see the Counter page load successfully with the navigation bar.Project Configuration
Angular Bases uses the following configuration:TypeScript Configuration
- Target: ES2022
- Strict Mode: Enabled with comprehensive type checking
- Experimental Decorators: Enabled for Angular components
Angular Configuration
- Project Type: Application
- Builder:
@angular/build:application - Package Manager: npm
- Analytics: Disabled
Build Options
- Development: Source maps enabled, optimizations disabled
- Production: Output hashing, tree shaking, minification
- Budget: 500kB warning, 1MB error for initial bundle
The project uses Angular’s modern standalone components architecture with signals for state management.
Additional Tools
Prettier Configuration
The project includes Prettier for code formatting:Available Scripts
After installation, you have access to these npm scripts:Next Steps
Now that you have Angular Bases installed, explore these resources:Quick Start Guide
Get up and running with the basics
Project Structure
Understand the codebase organization
Core Concepts
Learn about signals and Angular patterns
Components
Explore component APIs and methods
Troubleshooting
Common Installation Issues
npm install fails with permission errors
npm install fails with permission errors
On Linux/macOS, avoid using Add the export line to your
sudo. Instead, configure npm to use a different directory:.bashrc or .zshrc file.Angular CLI not found after installation
Angular CLI not found after installation
If
ng command is not recognized:- Ensure npm’s bin directory is in your PATH
- Try installing Angular CLI globally:
npm install -g @angular/cli - Restart your terminal
TypeScript version conflicts
TypeScript version conflicts
If you see TypeScript version warnings:This ensures you’re using the exact TypeScript version configured for the project.
Port 4200 is already in use
Port 4200 is already in use
Specify a different port:Or stop the process using port 4200: