How to Install Angular CLI 8.1.1 on CentOS 7.6
Installation of Angular CLI 8.1.1 On CentOS 7.6
Dependencies
gcc-c++ make git
Pre-requisites
Node.js
Nodejs latest version Download link
curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash –
Installation procedure
Install the dependencies that are essential for the installation of nodejs
[root@linuxhelp ~]# yum install gcc-c++ make -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
extras/7/x86_64/primary_db | 205 kB 00:00:01
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-36.el7_6.2 will be installed
.
.
.
.
.
.
.
Installed:
gcc-c++.x86_64 0:4.8.5-36.el7_6.2
Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7_6.2 gcc.x86_64 0:4.8.5-36.el7_6.2 libstdc++-devel.x86_64 0:4.8.5-36.el7_6.2
Dependency Updated:
libgcc.x86_64 0:4.8.5-36.el7_6.2 libgomp.x86_64 0:4.8.5-36.el7_6.2 libstdc++.x86_64 0:4.8.5-36.el7_6.2
Complete!
Download the latest version of node package manager by using the following xommand
[root@linuxhelp ~]# curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
## Installing the NodeSource Node.js 12.x repo...
## Inspecting system...
+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
+ uname -m
## Confirming "el7-x86_64" is supported...
+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
## Downloading release setup RPM...
+ mktemp
+ curl -sL -o '/tmp/tmp.oRx1AOYyUL' 'https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
## Installing release setup RPM...
+ rpm -i --nosignature --force '/tmp/tmp.oRx1AOYyUL'
## Cleaning up...
+ rm -f '/tmp/tmp.oRx1AOYyUL'
## Checking for existing installations...
+ rpm -qa 'node|npm' | grep -v nodesource
## Run `sudo yum install -y nodejs` to install Node.js 12.x and npm.
## You may also need development tools to build native addons:
sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
Install nodejs by executing the following command
[root@linuxhelp ~]# yum install nodejs -y
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: mirror.nbrc.ac.in
base | 3.6 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:12.6.0-1nodesource will be installed
--> Finished Dependency Resolution
.
.
.
.
.
Installed:
nodejs.x86_64 2:12.6.0-1nodesource
Complete!
Check the version of nodejs
[root@linuxhelp ~]# node --version
v12.6.0
Verify the version of node package manager
[root@linuxhelp ~]# npm --version
6.9.0
Install the Angular CLI using npm as follows
[root@linuxhelp ~]# npm install -g @angular/cli
/usr/bin/ng -> /usr/lib/node_modules/@angular/cli/bin/ng
> @angular/cli@8.1.1 postinstall /usr/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js
? Would you like to share anonymous usage data with the Angular Team at Google under
Google’s Privacy Policy at https://policies.google.com/privacy? For more details and
how to change this setting, see http://angular.io/analytics. No
+ @angular/cli@8.1.1
added 239 packages from 185 contributors in 33.618s
Verify the version of Angular CLI using ng command as follows
[root@linuxhelp ~]# ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.1.1
Node: 12.6.0
OS: linux x64
Angular:
With this. Installation of Angular CLI 8.1.1 Version On CentOS 7.6 comes to end.
Comments ( 0 )
No comments available