๐Ÿ“ How to Install Angular 20 and Set Up Your First App (Step-by-Step Guide)

Tushar JadhavTushar Jadhav
2 min read

๐Ÿ‘‹ Introduction

Welcome back to The Debug Diaries!
In my last post, I talked about what Angular is and why you should learn it in 2025.

Now, letโ€™s get hands-on and set up your first Angular project โ€” using the latest version: Angular 20 ๐Ÿ’ฅ


๐Ÿงฐ What You Need Before Starting

ToolPurpose
โœ… Node.jsRequired for Angular development
โœ… npmComes with Node.js
โœ… Angular CLI 20Helps you generate Angular projects
โœ… VS CodeA great editor for Angular work

๐Ÿ› ๏ธ Step 1: Install Node.js (if not installed)

  1. Go to ๐Ÿ‘‰ https://nodejs.org

  2. Download the LTS version (recommended)

After installing, verify in terminal:

node -v
npm -v

๐Ÿš€ Step 2: Install Angular CLI (Latest โ€” v20)

To install Angular CLI globally:

npm install -g @angular/cli@20

โš ๏ธ Adding @20 ensures youโ€™re installing the latest major version, not an older one.

Check the version:

ng version

It should show something like:

Angular CLI: 20.x.x
Node: 18.x.x

๐Ÿ“ Step 3: Create a New Angular App

Run:

ng new my-angular20-app

CLI prompts:

  • Would you like to add Angular routing? โ†’ Type y

  • Which stylesheet format? โ†’ Choose CSS (for now)

This will scaffold a fresh Angular 20 app with everything set up.


๐Ÿ‘จโ€๐Ÿ’ป Step 4: Run Your Angular App

Navigate into the project folder:

cd my-angular20-app

Then run the app:

ng serve

Now go to ๐Ÿ‘‰ http://localhost:4200
Youโ€™ll
see the default Angular 20 welcome screen.


๐Ÿง  What Just Happened?

  • The CLI created your Angular 20 project

  • It installed all dependencies

  • A local development server was started

  • The root component rendered in your browser


โœ… Summary

You just:

  • Installed Angular CLI 20

  • Created your first Angular 20 app

  • Ran it locally in your browser

Thatโ€™s a huge first step toward becoming an Angular developer! ๐Ÿ’ช


๐Ÿ“Œ Whatโ€™s Next?

In the next post, weโ€™ll dive into:

๐Ÿงฑ Understanding Angular Components โ€” The Building Blocks of Angular Apps

Weโ€™ll break down the files created and explore what each piece does.

Stay tuned on The Debug Diaries!


๐Ÿ”— Let's Connect and Explore More!

๐Ÿ“– Read the full series: ngtushar.hashnode.dev/angular-series
๐Ÿ’ป Source Code on GitHub: github.com/Tushar1409-hj
๐Ÿ”— Connect with me on LinkedIn: linkedin.com/in/tushar1409

If you found this post helpful, donโ€™t forget to share it with your fellow developers and follow the series for more Angular insights! ๐Ÿš€

0
Subscribe to my newsletter

Read articles from Tushar Jadhav directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Tushar Jadhav
Tushar Jadhav