To install Angular CLI, we must have the latest version of node and npm installed in our system. Make sure the required packages are installed already and then start installing Angular CLI globally. The minimum required npm version is 3.x.x and the node version is 4.x.x. Sometimes, you may get an error when installing Angular CLI. In such cases, make sure you have the latest version of node.js installed. We can verify the version of node by executing the following command:
node --version
We can check the version of npm by executing the following command:
npm --version
Now, we know the versions of node and npm installed in our development machine. Let's install Angular CLI globally by executing the following command:
npm install -g angular-cli
Angular CLI has been installed and is available globally to use in our development machine...