Environment Setup
メニューを表示するにはスワイプしてください
Before starting development with Angular, you need to set up your working environment. This requires three essential tools: Node.js, Angular CLI, and VS Code.
The author of the course uses macOS, but the installation steps are the same for both macOS and Windows.
Installing Node.js
Node.js is a JavaScript runtime that allows you to execute code on the server and manage packages using npm (Node Package Manager).
-
Go to the official Node.js website;
-
Use the LTS (Long-Term Support) version of Node.js instead of the latest release, as Angular may not yet be fully compatible with the newest version.
-
Select your operating system—I'm choosing macOS, but pick the one that matches your setup. Leave the other settings as they are;
-
Download the installer and follow the on-screen instructions to complete the installation.
Once installed, open the terminal (or command prompt) and verify that Node.js is installed:
node -v
If everything is set up correctly, this command will display the installed Node.js version.
Next, check that npm (Node Package Manager) is installed:
npm -v
Running npm -v will display the installed version of npm — a sign that it has been correctly installed and is ready to use.
Installing Angular CLI
Angular CLI (Command Line Interface) is a tool that simplifies the creation, setup, and management of Angular projects.
To install Angular CLI, first open your terminal (or command prompt). Then, run the following command to install Angular CLI globally:
npm install -g @angular/cli
This command installs Angular CLI globally on your system, making it available for any Angular project.
Before installing Angular CLI, ensure that Node.js is already installed on your system. The installation of Node.js is a prerequisite for using npm and Angular CLI.
Once the installation is complete, check the version of Angular CLI by running:
ng version
This will display the version information for Angular CLI and other installed dependencies.
Installing VS Code
VS Code (Visual Studio Code) is a free code editor from Microsoft, offering extension support and useful tools for Angular development.
-
Go to the official VS Code website;
-
Choose the version for your operating system (Windows, macOS, or Linux);
-
Download the installer and follow the on-screen instructions to complete the installation.
Once installed, open VS Code and set up the necessary extensions:
-
Go to the Extensions section (
Ctrl + Shift + Xon Windows orCmd + Shift + Xon macOS); -
Install the Angular Language Service extension for code highlighting and autocompletion;
-
You can also install Angular Essentials to add syntax support, autocompletion, and other tools for easier Angular development in VS Code.
フィードバックありがとうございます!
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください