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@latest
and 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).
Get Angular 2 Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.