How to install Angular 8 locally


When you have updated Angular CLI using npm install -g @angular/cli[@version], everytime you create Angular project using the ng new command, the project is generated with Angular version corresponding to that Angular CLI version. Angular 8 is latest Angular version that we may want to use in limited number of projects at the time it has just been released. In this tutorial, we’re gonna show you 2 ways to install new Angular 8 project locally in specific folder.


This is our current Angular CLI version:


We have 2 ways to setup new Angular project with specific Version:
– using npx => don’t need to install Angular CLI locally
– using local Angular CLI => need to generate a local folder for node_modules

Install Angular 8 locally using npx

Install npx

Run command: npm i -g npx

Setup new Angular project

Now, if we want to create Angular 8 project in a specific folder, just run the command on that folder:

npx -p @angular/cli@8.0.0-beta.2 ng new Angular8SpringBoot

You can change 8.0.0-beta.2 to your appropriate Angular CLI version. Run command ng --version on project folder, the result would be like:


Check package.json file:

Install Angular 8 locally using local Angular CLI

Install local Angular CLI

Go to the folder that you want to generate all Angular projects with the specific version, run command:
npm install @angular/cli@8.0.0-beta.2

node_modules folder will be generated.

Setup new Angular project

On the folder that you’ve installed Angular CLI, run the familiar command:
ng new angular-8-foo

Now run the ng --version command on project folder, the result would be like:


By grokonez | February 27, 2019.

Related Posts

Got Something To Say:

Your email address will not be published. Required fields are marked *