Hostnic Promo

Install Angular CLI di CentOS

Step by step :

  1. 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
  2. Install native-addons
    # yum install gcc-c++ make
  3. Install angular cli
    # npm install -g @angular/cli
  4. Buat Angular project menggunakan angular cli
    # cd /var/www/html/
    # ng new tecmint-app
  5. Pindah ke active directory dan run angular
    # cd tecmint-app
    # ls
    # list project files
    # ng serve
  6. Set firewall running port 4200
    # firewall-cmd –permanent –zone=public –add-port=4200/tcp
    # firewall-cmd –reload
Hostnic Promo

Di tulis oleh: