Skip to content

Installing Angular Manually

Angular is a popular web application framework and development platform for creating efficient and sophisticated single‑page apps. While many hosting accounts provide automated installers, you may sometimes need to install Angular manually — for example, if you want a specific version or are working on an unmanaged server.

  • Greater control over version selection.
  • Works on unmanaged VPS or dedicated servers.
  • Useful for developers who want custom setups.
  1. Log in to Your Account via SSH.

    • Use an SSH client to connect to your hosting account.
  2. Create a Node.js Application Environment.

    • Run the following command (replace example.com with your domain):

      Terminal window
      cloudlinux-selector create --json --interpreter nodejs --version 18 --app-root angdemo --domain example.com --app-uri angdemo angdemo
  3. Initialize Project Directory.

    • Navigate to the project folder:

      Terminal window
      cd ~/angdemo
    • Create a package.json file:

      {
      "name": "angdemo",
      "version": "1.0.0",
      "description": "My Demo App",
      "main": "app.js",
      "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1"
      },
      "author": "",
      "license": "ISC"
      }
  4. Install Node.js Modules.

    • Replace username with your account username:

      Terminal window
      cloudlinux-selector install-modules --json --interpreter nodejs --user username --app-root angdemo angdemo
  5. Activate Virtual Environment.

    • Replace username with your account username:

      Terminal window
      source /home/username/nodevenv/angdemo/18/bin/activate && cd /home/username/angdemo
  6. Configure Git (Optional).

    • Angular uses Git for version control. Configure your details:

      Terminal window
      git config --global user.email "user@example.com"
      git config --global user.name "Username"
  7. Install Angular CLI.

    • Run:

      Terminal window
      npm config set strict-ssl false
      npm install -g @angular/cli
  8. Create a New Angular App.

    • Example:

      Terminal window
      ng new my-app
    • This generates a new Angular project named my-app.