Skip to content

Angular CLI

Hong, Jian-Ching edited this page Oct 31, 2016 · 5 revisions

##Angular-CLI

https://github.com/angular/angular-cli

##Prerequisites Node.js 4 or higher(https://nodejs.org)

NPM 3 or higher

##Usage with yarn

ng new PROJECT_NAME --skip-npm
cd PROJECT_NAME
ng serve

Ref:

Usage

Option for ng new to use yarn instead of npm install

##Deploying the app via GitHub Pages

ng github-pages:deploy --message "Optional commit message"

##Updating angular-cli use yarn

yarn remove angular-cli
yarn cache clean
yarn global add angular-cli

Ref:

Updating angular-cli

Migrating from npm

Clone this wiki locally