npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
Install Specific Version (Example: 6.1.1)
npm install -g @angular/cli@6.1.1
# Instalación de angular cli
npm install -g @angular/cli
# Instalación de la última versión
npm install -g @angular/cli@latest
// install latest Angular CLI
npm install -g @angular/cli
// Genrerating a new application base
ng new my-application
// switching to the application directory
cd my-application
// running the application on local dev server
ng serve
npm install -g @angular/cli //make sure you have node/npm installed
ng new <appname> // eg: ng new my-app
cd <appname> // cd my-app
ng serve
npm install -g @angular/cli
ng new my-app
cd my-app
ng serve --open
Please take the following steps to avoid issues:
"npm install --save-dev @angular/cli@latest"
npm install -g @angular/cli
ng new my-app
cd my-app
ng serve
npm i -g @angular/cli
ng new <app-name>
cd <app-name>
ng serve