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

๐ 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
Tool | Purpose |
โ Node.js | Required for Angular development |
โ npm | Comes with Node.js |
โ Angular CLI 20 | Helps you generate Angular projects |
โ VS Code | A great editor for Angular work |
๐ ๏ธ Step 1: Install Node.js (if not installed)
Go to ๐ https://nodejs.org
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! ๐
Subscribe to my newsletter
Read articles from Tushar Jadhav directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
