Installing angular-cli
We will use npm to install angular-cli on our workstation. To do so, follow these simple steps:
- Launch the
Terminal(or command line in Windows). - Type:
npm install -g angular-cli@latestand press Enter (in Windows, you might need to run this command as an administrator).
That's it! The angular-cli is now installed on your machine, and, because we used the flag -g with our npm install command, angular-cli exposed an ng alias that is available from anywhere. (-g stands for global, which means the module was installed on a system-level directory).