How to update @angular/core globally?

Asked

Viewed 266 times

0

I did the update on angular/cli for the latest version (Angular 8), but when I create a new project, the @angular/core is in the version @7.2.15 and not in the version @8.1.0.

The project gives error if I try to compile the project with the ng serve.
For it to work, I need to update the @angular/core every time soon after I create a project.
So I would like to create my projects already with the core version of angular in version @8.1.0, so I don’t have to keep giving the command ng update @angular/core every time I create a project.
Because when I used the angled version in the previous version, I didn’t need this.

Is there a way to update the @angular/core so global?

1 answer

0

  • 2

    Thanks, I managed to solve. I just needed to restart the computer so it starts creating the project in the current version.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.