question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should we run npx browserslist@latest --update-db regularly?

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

19reactions
aicommented, Jun 7, 2020

So, our question is if we need to run it regularly?

Yeap. Run it every few months.

It updates the caniuse-lite database with browsers. With all data last 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.

3reactions
PrashinMorecommented, Jun 29, 2021

Error: EPERM: operation not permitted, mkdir ‘C:\Users\user’ command not found: browserslist

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found