Error: Cannot read config package: eslint-config-airbnb
See original GitHub issueI’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:
- Created 7 years ago
- Comments:5
Top 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 >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
Damn, I was calling it from the command line, that’s why it wasn’t resolving the module. Thanks heaps dude.
and how are you invoking
eslint
? Are you doing it bare on the command line (such thatwhich eslint
doesn’t point to the local one), or are you using annpm run-script
?