Robert
Robert

Reputation: 393

Angular update in one project to higher version than on machine

On my computer I have Angular 8. In one project I want to have version 9. How to update Angular to version 9 only in this one project?

Upvotes: 1

Views: 1486

Answers (2)

Useme Alehosaini
Useme Alehosaini

Reputation: 3116

Suppose your project repository is

c:\repos\myproject

Using cmd or Powershell

cd c:\repos\myproject

run

npm install @angular/cli@9

wait for the result

ng update @angular/core@9

wait for the result, should be a successful result.

to be sure from the version, run

ng --version

Upvotes: 1

Emanuele Tuttolani
Emanuele Tuttolani

Reputation: 141

The angular cli provides a command for that, is npx ng update.

Upvotes: 0

Related Questions