1

I have a problem when run app dotnet-core with template angular I got this error:

Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`fail: Microsoft.AspNetCore.SpaServices[0]
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`

I try run npm update but it's not working and I don't get any message when I run that command.

All version

Angular CLI: 10.0.5
Node: 14.4.0
DotNet: 3.1.201

Package version:

enter image description here

How can I fix this? Thanks

Rael Gugelmin Cunha
  • 3,327
  • 30
  • 25
ivan saron
  • 97
  • 1
  • 2
  • 11
  • Here is a [link](https://stackoverflow.com/questions/55271798/browserslist-caniuse-lite-is-outdated-please-run-next-command-npm-update-cani),and maybe you can try what `Scott Kuhl` says, – Yiyi You Aug 10 '20 at 03:22

1 Answers1

8

I'm using react instead of angular and I've faced the same issue.

According browserlist documentation, in order to fix, run:

npx browserslist@latest --update-db
Rael Gugelmin Cunha
  • 3,327
  • 30
  • 25