Should we run npx browserslist@latest --update-db regularly?
See original GitHub issueWe are using browserslist to display to our users if their browsers are out-of-date (we also use it on a number of things during development like eslint-plugin-compat). Thanks for this wonderful work, by the way.
Recently, we had issues that new Edge browsers (desktop and android) are being tagged as out of date. We saw an issue a few days ago and the solution was to run
npx browserslist@latest --update-db
So, our question is if we need to run it regularly? During our CI/CD, we run this to update our regex patterns for useragents
browserslist-useragent-regexp --allowHigherVersions
Thinking to add the update before this if it will make sense.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
caniuse-lite is outdated. Please run next command `npm ...
Try this it solved my problem npx browserslist@latest --update-db.
Read more >caniuse-lite is outdated. Please run: npx browserslist@latest
While trying the run my server in NextJs, I encountered the below error. Browserslist:. ... Please run: npx browserslist@latest --update-db.
Read more >#53685 (Update the `caniuse` database when running `grunt ...
The caniuse-lite data is updated pretty frequently (several times a ... The recommended way to do this is running npx browserslist@latest --update-db ....
Read more >Browserslist: caniuse-lite is outdated - CircleCI Discuss
I'm getting the following logs when running some tests. Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db ...
Read more >Browserslist on Twitter: "You need to run `npx browserslist ...
Otherwise, `last 2 browsers` or `> 1%` will return outdated ... You need to run `npx browserslist@latest --update-db` every month to keep ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeap. Run it every few months.
It updates the
caniuse-lite
database with browsers. With all datalast 2 versions
or>1%
will return old browsers and Autoprefixer/Babel will insert polyfills for browsers, which nobody really uses nowadays.Another option will be to run
npm update
, but it will update all your dependencies, which will force you to run the full QA process.Help us maintain this project and finish security refactoring by domantion at out Open Collective. Supporting tools, which creates a basement for your business is very important for sustainable development.
@talha786-wahid use cmd vscode integrated terminal doesn’t have certain permissions. You should check to see if your vscode terminal is a powershell. I think you can change it to cmd from the dropdown at the top-right. If that doesn’t work you can always use the usual command prompt. Hope this helps.