Skip to content
Follow
Ubuntu Linux

Install Angular CLI on Ubuntu: A Step-by-Step Guide

Richard
Written by
Richard
Jun 28, 2022 Updated Jun 19, 2026 2 min read
How to Display Seconds on Ubuntu Top Menu Clock
How to Display Seconds on Ubuntu Top Menu Clock

You install the Angular CLI on Ubuntu to streamline your Angular development workflow by providing command-line tools for creating, building, and managing projects.

The Angular CLI, a powerful command-line interface, simplifies tasks like generating new components, running your application locally, and deploying it.

This guide walks you through installing Angular CLI version 17 on your Ubuntu system, ensuring you’re ready to build modern web applications efficiently.

⚡ Quick Answer

Install Angular CLI on Ubuntu by first installing Node.js with NVM, then running npm install -g @angular/cli. Verify the installation with ng version.

How to install and use Angular CLI on Ubuntu Linux

You can install the Angular CLI on Ubuntu Linux easily using NVM to manage Node.js, which is safer because you won’t need special admin rights for global packages.

First, open your terminal. Run this command to install NVM from the official source:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

📝Good to Know
After installing NVM, you need to refresh your profile so the terminal recognizes the new command: source ~/.bashrc

Next, install the latest Long Term Support (LTS) version of Node.js. LTS versions are generally recommended for stability. In 2026, this is version 22 install Node.js:

nvm install 22

Verify your installation by checking the versions of Node and NPM Node.js version 16 LTS:

node -v

npm -v

Now, install the Angular CLI globally using NPM:

npm install -g @angular/cli

Modern Angular Development

💡Tip
Modern Angular development is quicker with tools like Esbuild, which makes your development server start almost instantly, improving the whole experience when you start a new Angular project.

To create a new project, use the standard command:

ng new my-first-project

Modern Angular projects now default to “Standalone” components. This approach means you won’t typically need the old NgModules, making your code cleaner and simpler to manage.

Check your version to confirm everything is ready:

ng version

Terminal window showing the process to install Angular CLI on Ubuntu
angular cli on ubuntu linux

Running your project

To run your Angular project on your computer, first go into your project’s folder using the ‘cd’ command, then start the development server with ‘ng serve’ to see your app working in the browser.

cd my-first-project

ng serve

Open your web browser and go to http://localhost:4200/ to see your app running.

Command line interface creating a new Angular project on Ubuntu Linux
angular cli first project on ubuntu linux

When you run the ng serve command, the CLI watches your files. Every time you save a change, the browser will update automatically.

Conclusion

By following these steps, you’ve got a modern setup with NVM and the latest Angular tools. You’re now ready to build fast, efficient web applications on Ubuntu.

If you’re curious about all the available versions, you can check them out here: https://github.com/angular/angular-cli/releases

What is npm install Angular CLI?

When you run ‘npm install Angular CLI’, it installs all the needed Angular packages and other bits your project requires.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Windows Subsystem for Linux (WSL) on Windows 11
Ubuntu Linux How to Install Windows Subsystem for Linux (WSL) on Windows 11
How to Allow Remote Connections to MySQL Database Server
Ubuntu Linux How to Allow Remote Connections to MySQL Database Server
How to Add a User to Sudoers in Ubuntu
Ubuntu Linux How to Add a User to Sudoers in Ubuntu
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *