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.

can't run npx browserslist --update-db on windows

See original GitHub issue

When I run the command: npx browserslist --update-db on windows I get: Cannot read property '1' of null

I made sure I updated to the latest: browserslist@4.14.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
DavidHenri008commented, Sep 14, 2021

I just fixed the issue by clearing my node-modules and my lock file. Thanks.

1reaction
aicommented, Sep 16, 2020

Try npx browserslist@latest --update-db

If it will not help post the full error message (I need file names and line numbers).

Read more comments on GitHub >

github_iconTop Results From Across the Web

caniuse-lite is outdated. Please run next command `npm ...
First, as the message says, I ran npm update caniuse-lite browserslist but it didn't fix the issue. I deleted the whole node_modules directory ......
Read more >
caniuse-lite is outdated. Please run: npx browserslist@latest
While trying the run my server in NextJs, I encountered the below error. These following steps worked for me and I hope this...
Read more >
browserslist - npm
The config to share target browsers and Node.js versions between different front-end tools. It is used in: Autoprefixer · Babel · postcss-preset ...
Read more >
Browserslist on Twitter: "@antiflasher Run `npx browserslist ...
In Browserslist 4.12 we move the tool to update caniuse-lite (browsers DB) to a separated project. Old `npx browserslist --update-db` will work too...
Read more >
Browserslist update in red font when SonarRunner was ...
When I was executing Sonar Runner, I saw these lines in the Console Window. Not sure whether these should be executed on the...
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