Angular - Updates

I used the following process

Actually, a thing to note is when I created my Angular project, it created a git repository. As I reflect back upon the process, I had to do a lot of commit’s. Thinking about it, maybe each of those npm update commands require your code to be commited first. I think that’s a good idea. I lost nothing, but if I did, it would be in my repository.

If you dont commit, you receive ‘Repository is not clean, please commit or stash any changes before updating’. Here is a sample command.

1
git commit -m "code before angular update"
1
npm update @angular/cli @angular/core

I also performed a typescript update.

References