Learn how to set up your environment for Angular development using the Angular CLI tool
Installing the Angular CLI
PrerequisitesTo install the Angular CLI, you must have the Node.js installed in your environment.
node -vin 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
npm -vin a console window to check the npm version installed
InstallationOpen a console window and enter the following command:
npm install -g @angular/cli
ng versionin 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 IDEwe 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.