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.
Why Install Angular Manually?
-
Greater control over version selection.
-
Works on unmanaged VPS or dedicated servers.
-
Useful for developers who want custom setups.
Steps to Install Angular Manually
-
Log in to Your Account via SSH.
-
Use an SSH client to connect to your hosting account.
-
-
Create a Node.js Application Environment.
-
Run the following command (replace
example.comwith your domain):Bash cloudlinux-selector create --json --interpreter nodejs --version 18 --app-root angdemo --domain example.com --app-uri angdemo angdemo
-
-
Initialize Project Directory.
-
Navigate to the project folder:
Bash cd ~/angdemo -
Create a
package.jsonfile:{ "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" }
-
-
Install Node.js Modules.
-
Replace
usernamewith your account username:Bash cloudlinux-selector install-modules --json --interpreter nodejs --user username --app-root angdemo angdemo
-
-
Activate Virtual Environment.
-
Replace
usernamewith your account username:Bash source /home/username/nodevenv/angdemo/18/bin/activate && cd /home/username/angdemo
-
-
Configure Git (Optional).
-
Angular uses Git for version control. Configure your details:
Bash git config --global user.email "user@example.com" git config --global user.name "Username"
-
-
Install Angular CLI.
-
Run:
Bash npm config set strict-ssl false npm install -g @angular/cli
-
-
Create a New Angular App.
-
Example:
Bash ng new my-app -
This generates a new Angular project named
my-app.
-
Notes
|