-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?

3
  • Run in your cmd ng version and check if you have angular 10 installed. If not, update your version. Commented Sep 21, 2020 at 18:28
  • npx -p @angular/cli@latest ng new ... Commented Sep 21, 2020 at 18:31
  • Take a look at this answer: stackoverflow.com/a/72748417/6666348 Commented Jun 24, 2022 at 19:08

1 Answer 1

4

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

This will install @angular/[email protected] 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

Sign up to request clarification or add additional context in comments.

3 Comments

it's the release candidate. github.com/angular/angular-cli/releases
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/[email protected]. When I run npm install --global @angular/cli@next it installs @angular/[email protected]...
@HereticMonkey nice catch, just threw a fast eye. Updated the answer accordingly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.