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.

Error: Cannot read config package: eslint-config-airbnb

See original GitHub issue

I’m using node 6 on OSX El Capitan

Error: Cannot find module 'eslint-config-airbnb'
Referenced from: ~/dev/{project-name}/.eslintrc
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at loadPackage (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:168:16)
    at loadConfigFile (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:212:18)
    at load (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:385:18)
    at /usr/local/lib/node_modules/eslint/lib/config/config-file.js:326:36
    at Array.reduceRight (native)
    at applyExtends (/usr/local/lib/node_modules/eslint/lib/config/config-file.js:309:28)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
alanrsoarescommented, May 9, 2016

Damn, I was calling it from the command line, that’s why it wasn’t resolving the module. Thanks heaps dude.

1reaction
ljharbcommented, May 9, 2016

and how are you invoking eslint? Are you doing it bare on the command line (such that which eslint doesn’t point to the local one), or are you using an npm run-script?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eslint cannot read config file - Stack Overflow
It looks like this relates to VSCode, the configuration file should be setup with a path to your config. See the guide here....
Read more >
eslint-config-airbnb - npm
This package provides Airbnb's .eslintrc as an extensible shared config. Usage. We export three ESLint configurations for your usage. eslint- ...
Read more >
eslint/eslint - Gitter
For anyone with this issue the problem is the new version of ESLint doesn't read your global folder. If you install the eslint...
Read more >
Cannot find module 'eslint-config-airbnb-base' #10388
... the following comand : eslint --init and when I tried to execute my app.js file, I'v got this error : cannot find...
Read more >
eslint couldn't find the config "airbnb-typescript" to extend from
Github.com > iamturns > eslint-config-airbnb-typescript ... shared\index.js 5:32 error Parsing error: Unexpected token import.
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