Skip to content
Follow
Ubuntu Linux

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

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

The Angular CLI (command-line interface) is a helper tool that lets you create, build, and test web apps on Ubuntu. Version 17 of the Angular CLI gives you standard commands to spin up projects and run them on your computer without hassle.

You need this tool to set up your workspace before you write any code. Open your terminal and follow the steps below to get it running on your system.

⚡ 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

Installing the Angular CLI on Ubuntu Linux requires NVM (Node Version Manager) to handle Node.js packages safely. This method avoids permission prompts and admin rights by keeping packages contained in your user account. First, open your terminal and run the following command to install NVM from its official source:

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

After installing NVM, 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 releases offer maximum stability for production environments. For 2026, this targets version 22: `nvm install 22`

Verify your installation by checking the versions of Node and NPM:

```bash node -v ```

```bash npm -v ```

Now, install the Angular CLI globally using NPM:

```bash npm install -g @angular/cli ```

Modern Angular Development

Modern Angular development speeds up tasks using tools like Esbuild, making your development server start almost instantly. This performance boost transforms the workflow when building 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 eliminates the older NgModules architecture, keeping codebases cleaner and more manageable.

Check your version to confirm everything is ready:

```bash ng version ```

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

Running your project

Running your Angular project locally takes seconds. First, navigate into your project's folder using the `cd` command, then start the development server with `ng serve`. This command launches the app in the browser, usually at http://localhost:4200/.

```bash cd my-first-project ```

```bash ng serve ```

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

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

The `ng serve` command monitors project files continuously. Every file save triggers an automatic browser refresh.

Conclusion

Completing these steps establishes a modern development environment running NVM and the latest Angular tools. Developers gain the setup needed for building fast web applications on Ubuntu.

Release notes and version history remain available for review here: https://github.com/angular/angular-cli/releases

What is npm install Angular CLI?

Running 'npm install @angular/cli' downloads all necessary Angular packages and dependencies required by the project.

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

Install Node.js and npm on Ubuntu: A Step-by-Step Guide
Ubuntu Linux Install Node.js and npm on Ubuntu: A Step-by-Step Guide

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

Leave a Comment

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