

Navigate to the project directory: cd my-app This will create a new directory with the same name and initialize it as an Angular project. Replace my-app with the desired name for your project. The above command creates a new angular project( my-app) with all the required dependencies. Create a New Angular ProjectĪfter installing Angular CLI, you can now use it to create a new Angular project using the following command: ng new my-app Type the ng version or ng v command at your terminal prompt to verify your angular version. If you write this, you can use the CLI directly in any Angular project on your system. If you have installed node.js on your system, the next step is to install Angular CLI by using the following command: npm install -g in the above command, -g is used for global installation. Angular CLI (command-line interface) Setup The Angular CLI (command-line interface) is a great tool to efficiently build Angular applications by automating operations in Angular projects rather than manually. Furthermore, to check the Node Package Manager, you can use the npm -v command in your terminal prompt.

This will immediately show you the Node.js version installed on your system.

To check whether 'Node.js' is already installed in your system, you need to type the node -v command in your terminal prompt. To get the best development experience, and if you do not yet have the node pre-installed on your System: Please go to the download page of the website and install the latest version of the node.

Node.js is a server-side backend, which makes it important but not mandatory for AngularJS.
