
Install Angular CLI di CentOS
Step by step :
- Install node.js di CentOS
# curl -sL https://rpm.nodesource.com/setup_12.x | bash – [for Node.js version 12]
# curl -sL https://rpm.nodesource.com/setup_11.x | bash – [for Node.js version 11]
# curl -sL https://rpm.nodesource.com/setup_10.x | bash – [for Node.js version 10]
# yum -y install nodejs - Install native-addons
# yum install gcc-c++ make - Install angular cli
# npm install -g @angular/cli - Buat Angular project menggunakan angular cli
# cd /var/www/html/
# ng new tecmint-app
- Pindah ke active directory dan run angular
# cd tecmint-app
# ls
# list project files
# ng serve
- Set firewall running port 4200
# firewall-cmd –permanent –zone=public –add-port=4200/tcp
# firewall-cmd –reload

Di tulis oleh: Nanda Anubis