Setting up Angular Local Environment
Posted on November 18, 2019
Learn how to set up your environment for Angular development using the Angular CLI tool
Installing the Angular CLI
Prerequisites
To install the Angular CLI, you must have the Node.js installed in your environment.- Run
node -v
in a console window to check the Node.js version installed - If you haven't installed the latest verion, go to nodejs.org and install the LTS version or the latest supported version by Angular CLI
- npm package manager is installed with Node.js by default
- Run
npm -v
in a console window to check the npm version installed
Installation
Open a console window and enter the following command:npm install -g @angular/cli
ng version
in a console window to check the Angular version installed to verify.This should output the version of the Angular CLI, version of Node.js, operating system and Angular package versions installed in current environment
Installing the IDE
we will be using Visual Studio Code as the IDE for Angular development.Setting up Visual Studio Code
Getting up and running with Visual Studio Code is quick and easy. It is a small download so you can install in a matter of minutes and give VS Code a try. Download and install it from code.visualstudio.com
Now you are ready to start angular development.