- Login to your server via shell (SSH).
- Install the pre-requisites.
sudo yum -y install epel-release
As we’ll be using npm to install angular CLI, it requires few build tools to compile and install packages:
sudo yum -y install gcc c++ make curl -sL https://rpm.nodesource.com/setup\_11.x | sudo -E bash -
- Install Node.JS.
yum -y install nodejs
Check the version to insure that everything went correctly:
node -v npm -v
NOTE: Please note that Angular requires Node 8.9 or higher, together with NPM 5.5.1 or higher. Otherwise the installation in the next step will not proceed.
- Install Angular.
npm install -g @angular/cli
Verify your Angular installation with the following command:
ng -v
- Start an Angular project.
ng new
- Staring the development server.
cd ng serve
Note: The angular application should now be accessible at https://localhost:8005 (or your domain instead of localhost depending on where you deployed the application).
