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?
1 Answer
$ 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
3 Comments
PatricNox
it's the release candidate. github.com/angular/angular-cli/releases
Heretic Monkey
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]...PatricNox
@HereticMonkey nice catch, just threw a fast eye. Updated the answer accordingly
npx -p @angular/cli@latest ng new ...