Skip to content

Angular University

Yash edited this page Jun 19, 2018 · 1 revision

Note « You can Login|Authorize with GitHub account.


Angular CLI form NPM @angular/cli packages depending on @angular/cli

Installation

npm install -g @angular/cli

Updating Angular CLI

If you're using Angular CLI 1.0.0-beta.28 or less, you need to uninstall angular-cli package. It should be done due to changing of package's name and scope from angular-cli to @angular/cli:

npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli

To update Angular CLI to a new version, you must update both the global package and your project's local package.

  • Global package:
npm uninstall -g @angular/cli
npm cache verify
# if npm version is < 5 then use `npm cache clean` 
npm install -g @angular/cli@latest
  • Local project package:
rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell 
npm install --save-dev @angular/cli@latest
npm install

Sample Projects over GitHub « angular2-quickstart

Sample of how easy and fast to start hacking with Angular2 and ng2-bootstrap.

Clone this wiki locally