Angular Project Setup
Streamline the process of setting up your Angular project on Windows, macOS, and Ubuntu/Linux using this comprehensive checklist. Covering installation of Node.js and npm, setting up Angular CLI, creating a new Angular project, and serving your application locally, this guide ensures a smooth project initiation across various operating systems.
Windows:
Install Node.js and npm:
node --version npm --version
Install Angular CLI:
npm install -g @angular/cli
ng --version
Create a new Angular project:
ng new my-angular-project
Navigate to the project directory:
cd my-angular-project
Serve the Angular application:
ng serve
macOS:
Install Homebrew (Package Manager):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Node.js and npm:
brew install node
node --version npm --version
Install Angular CLI:
npm install -g @angular/cli
ng --version
Create a new Angular project:
ng new my-angular-project
Navigate to the project directory:
cd my-angular-project
Serve the Angular application:
ng serve
Ubuntu/Linux:
Install Node.js and npm:
sudo apt update sudo apt install nodejs npm
node --version npm --version
Install Angular CLI:
sudo npm install -g @angular/cli
ng --version
Create a new Angular project:
ng new my-angular-project
Navigate to the project directory:
cd my-angular-project
Serve the Angular application:
ng serve