How to Install Angularjs on Linux?
Last Updated :
09 Nov, 2021
AngularJS as the name suggests is a JavaScript-based framework. Being more precise AngurlarJS is an open-source front-end framework for the web. It is backed and maintained by Google. It has been in the market for a long time now, its initial release dated back to Oct 2010, and its last stable release was 12 months back in Oct 2020. AngularJS aims to be a simple framework for developing mainly single-page web applications by employing MVC & MVVM architecture. Its most popular use cause was to be used as the frontend of the application built with MERM stack.
As of now, everything is well with this framework but there is an announcement made by Google declaring that they will no longer be working on AngularJS to update the framework after December 2021 So after this, all the responsibility of maintaining this framework will entirely be shifted to the opensource community. They also suggested developers to migrate to Angular (v2) which was released in the year 2021 itself. All in all, it is one of the most used frameworks which served its intended purpose well.
Below we will see all the steps related to the installation of AngularJS on the Linux operating system.
Step 1: Update The System
The first and foremost thing that we will do is to update and upgrade all systems so as to avoid any errors in the later steps due to old dependencies. And to do so we will open the terminal app and run the command given below if the operating system is in Ubuntu. If any other Linux-based operating system is being used then you can google the appropriate command.
sudo apt-get upgrade && sudo apt-get update -y
Step 2: Install NodeJS
Node JS is a dependency that we require in order to install Angular JS. Node JS is a cross-platform JavaScript-based runtime environment for the backend. With this developers can write command-line tools and that is exactly what it will be used for in the further steps. First, we will whether NodeJS is already installed in our system or not. And to do so we can check its version by running the below command.
node -v
If your system does not already have NodeJS then you will see something like this. And even if NodeJS is already present then you can system then also you can reinstall it to get the latest version.
Install NodeJS
To install NodeJs in any Linux is a fairly simple task. All we need to do is to run a command in the terminal. Below we have the command for Ubuntu to install Node JS.
sudo apt install nodejs
To check if NodeJS is installed you can run the command in the first step.
Step 2: Install NPM (Node Package Manager)
Now we will install the node package manager which is required for the installation of Angular CLI. To install the node package manager we need simply need to run the below command in the terminal.
sudo apt install npm -y
Check NPM Version:
To check the installation of nom we can run the command below which will give out the installed version of npm.
npm -v
Step 3: Install Angular CLI Using NPM
Now that we have installed both NodeJS and NPM we can move on to the installation of Angular CLI which is a command-line tool to work with AngularJS. The command for the installation is given below. All we need to do is simply run it in the terminal.
sudo npm install -g @angular/cli

Check The Angular CLI Version:
And to check the proper installation of Angular CLI we can check its version using the command given below.
ng version
Step 4: Create A Sample Hello World App
The best way to check whether everything is has been installed correctly and is working fine would be to create a sample app; So we will create a hello world app and to do so we need to run the command given below.
ng new helloworld
Now we will move to the newly created project folder.
cd helloworld/
Once we are in the project folder we can run the created app by using the command given below.
ng serve
The app will be opened in the browser in the local host whose address will be shown in the terminal.
So this concluded all the steps in order to install AngularJS on Linux-based operating systems and create a sample app. In order to get more information on this topic considers visiting the official website of AngularJS.
Similar Reads
How to Install Flask on Linux?
Flask is a python module. It can work with python only. It is a web-developing framework. A web framework is a collection of libraries and modules. Frameworks are used for developing web platforms. Flask is such a type of web application framework. It is completely written in Python language. Unlike
2 min read
How to Install Angularjs on MacOS?
AngularJS as the name suggests is a JavaScript-based framework. Being more precise AngularJS is an open-source front-end framework for the web. It is backed and maintained by Google. It has been in the market for a long time now, its initial release dated back to Oct 2010, and its last stable releas
3 min read
How to Install PHP on Alpine Linux?
Alpine Linux is a Linux distro that is lightweight and security-focused. The main aim of alpine is to be minimalistic be it in scope or space. Since it is small in size it is used in those containers which require less time for booting. Unlike other distros which use GNU, Glibc alpine used musl, bus
2 min read
How to Install PHP on Linux?
PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P
2 min read
How to Install Tor on Linux?
Tor browser is a web browser that is designed and developed to protect your privacy online and is mostly famous among normal people as a key for safely accessing hidden or restricted online resources, including those on the dark web. We will see what Tor is and how to install it on your Linux machin
5 min read
How to Install Nginx in AWS Linux ?
Nginx is a simple web server that can be used for multiple purposes such as load balancer, reversal proxy & HTTP cache as well, the software was created by Igor Sysoev, a Russian developer and it was released in the year 2004. the reason why nginx is popularly used is because it is an open-sourc
8 min read
How To Install Nginx On Amazon linux ?
Nginx, at first conveyed in 2004 by Igor Sysoev, is a decent open-source web server, switch go-between, load balancer, and HTTP store. With its occasion-driven planning, Nginx productively handles endless simultaneous affiliations, making it ideal for high-traffic districts and applications.It keeps
6 min read
How to Install GCC Compiler on Linux?
In this article, we will discuss how to install a GCC compiler on Linux. GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also be used to compile Objective C and Objective C++. The GCC is an open-source collection of compilers and libraries. Let's st
2 min read
How to Install Netbeans on a Linux
NetBeans is an open-source Integrated Development Environment (IDE) primarily for Java programming, but it also supports various other programming languages. It is used to develop mobile applications, desktop applications, and web applications. This guide will help you install NetBeans on a Linux sy
4 min read
How to Install Jekyll on Linux?
Jekyll is software used for creating websites. It can create websites more dynamically. Jekyll is useful nowadays. It can convert simply written text files into website documentation. It is simple to use. There is no database required for using Jekyll. It is very easy to use. Jekyll is platform-inde
2 min read