-1

I want to create an angular app with version 10.1.2 stable but when I do the regular procedure (ng new --) it automatically creates angular project version 7. Please let me know how I create the specific version that is angular 10?

R. Richards
  • 24,603
  • 10
  • 64
  • 64
Pavan Kumar
  • 39
  • 2
  • 11

1 Answers1

3

$ npm install --global @angular/cli@10

This will install @angular/cli@10.1.2 as of writing time.

Now to update your current instance:

$ ng update @angular/cli

Afterwards, to init a project, you can simply:

$ ng new angular10-project

and to verify your version:

$ ng version

PatricNox
  • 3,306
  • 1
  • 17
  • 25
  • it's the release candidate. https://github.com/angular/angular-cli/releases – PatricNox Sep 21 '20 at 18:33
  • 1
    That shows v11.0.0-next.2 as the Pre-Release, and v10.1.2 as the Latest Release. When I run `npm install --global @angular/cli@latest` it installs @angular/cli@10.1.2. When I run `npm install --global @angular/cli@next` it installs @angular/cli@11.0.0-next.2... – Heretic Monkey Sep 21 '20 at 18:37
  • 1
    @HereticMonkey nice catch, just threw a fast eye. Updated the answer accordingly – PatricNox Sep 21 '20 at 18:43