To
install Angular CLI you should have installed Node 6.9.0 or higher, and NPM 3
or higher. To check the
versions that you have on your machine type the following commands in a command
window.
·
node -v
·
npm -v
Once
you have Node and NPM installed. Run Command Prompt as an administrator and
execute the following command. Flag -g installs Angular CLI globally on your
machine.
npm install -g @angular/cli
You can also use i as shortcut for install. So, the above command can also be rewritten as shown below
npm install -g @angular/cli
You can also use i as shortcut for install. So, the above command can also be rewritten as shown below
npm i -g @angular/cli
To
verify the version of Angular CLI installed, execute the following command
ng -v
ng -v
Angular CLI should be installed globally so that it will be available to
all the project. If you install only for project specific then it will not
available for other projects.
No comments:
Post a Comment