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.

Global browserslist should be able to resolve local installed configs

See original GitHub issue

I have browserslist globaly installed and had an hard time to figure out why a browserslist-config-* project couldn’t be resolved.

Within package.json

"browserslist": [
  "extends browserslist-config-vue"
],

When running browserslist

C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\cli.js:82
      throw e
      ^

Error: Cannot find module 'browserslist-config-vue'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.loadQueries (C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\node.js:83:19)
    at Function.select (C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\index.js:632:26)
    at C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\index.js:151:33
    at Array.reduce (<anonymous>)
    at resolve (C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\index.js:132:18)
    at browserslist (C:\Users\Lisa\AppData\Roaming\npm\node_modules\browserslist\index.js:224:16)

When running node ./node_modules\browserslist\cli.js

and_chr 64
and_ff 57
and_qq 1.2
and_uc 11.8
android 62
android 4.4.3-4.4.4
android 4.4
android 4.2-4.3
baidu 7.12
...

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
aicommented, Mar 30, 2018
0reactions
aicommented, Mar 30, 2018

Fixed 648cc2f

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'browserslist' when I run the npm ...
Run this in your terminal: npm i browserslist ... Delete your nodemodules folder and package.lock.json file and run npm install.
Read more >
browserslist-ga - npm
The global browser usage data comes from caniuse.com and is downloaded from npm when you run npm install . Package managers such as...
Read more >
FIX npm WARN config global `global`, `local` are ... - YouTube
In this video I will show how to PROPERLY fix the npm warning WITHOUT modifying local npm files.Timeline:00:00 Upgrade npm03:52 Workaround ...
Read more >
Changelog - Cypress Documentation
Fixed an issue where the Cypress migration wizard would fail to run in global mode on newer versions of Cypress. Addressed in #25138....
Read more >
Chrome Enterprise and Education release notes
The installed Chrome Apps are still launchable. Starting with Chrome 111, Chrome Apps on Windows, Mac and Linux will no longer work. To...
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