-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Error: Browserslist: caniuse-lite is outdated. Please run next command npm update
#16560
Comments
npm update
npm update
@phani17c which command is throwing this error? Typically this is just a “warning”.
|
We encountered this today on our CI agents with ng test, no issue with building. We changed the caniuse-lite version in package-lock.json @angular-devkit/build-angular to 1.0.30001016 from 1.0.30000989. The @angular-devkit/build-angular was on version 0.803.20 (0.803.21 is the latest). |
NG build command is also complaining about this to me, should just require a package.json update right? Fast fix? It is indeed just a warning, but it's somewhat surprising to my back end guys who dont know what it means. Mine does not show the error, just the same message.
|
@alan-agius4 Will this be a new npm version after fix happen? |
And @alan-agius4 you are right, I have custom script to run some npm scripts combined |
please update the |
@phani17c, a new version will be released in the coming days. |
Thanks @alan-agius4 I am closing this issue. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)ng build
Is this a regression?
Yes, the previous version in which this bug was not present was: ....Description
A clear and concise description of the problem...When I run build universal, I am getting this error
"ERROR: Error: Browserslist: caniuse-lite is outdated. Please run next command
npm update
"Here is the analysis I did, I think the issue is really coming with dependency @babel/preset-env": "7.7.6" which use "browserslist": "^4.6.0" which uses "caniuse-lite": "1.0.30000967". So it throws the above error. Currently my script logic is synchronous run commands. So it breaks with this message.
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: