🛠️ 1. Install Node.js & npm
Angular requires Node.js (includes npm - Node Package Manager).
✅ Download & Install:
- Go to https://nodejs.org
- Download the LTS version (recommended for most users).
- Follow the installer instructions for your OS (Windows, macOS, Linux).
🔍 Verify Installation:
node -v
npm -v
🟢 2. Install Angular CLI (Command Line Interface)
The Angular CLI is a powerful tool to scaffold, build, serve, and manage Angular projects.
📥 Install Globally:
npm install -g @angular/cli
🔍 Verify Installation:
ng version
🧪 3. Create Your First Angular App
ng new my-angular-app
You’ll be prompted to:
- Choose if you want to add Angular routing → (Yes/No)
- Choose a stylesheet format (CSS, SCSS, etc.)
Move into the project directory:
cd my-angular-app
🚀 4. Serve the App Locally
ng serve
Open your browser and go to:
http://localhost:4200
You’ll see the default Angular welcome page 🎉
📂 Optional: VS Code Setup (Recommended Editor)
- Install Visual Studio Code
- Add the Angular Essentials Extension Pack:
- Angular Language Service
- Prettier
- ESLint
- Path Intellisense
🔄 Summary Checklist
| Step | Command |
|---|---|
| Install Node.js | https://nodejs.org/ |
| Install Angular CLI | npm install -g @angular/cli |
| Create Project | ng new my-angular-app |
| Run Project | ng serve |
| View in Browser | http://localhost:4200 |
Comments
Post a Comment