Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'eslint-config-airbnb/base' from '/usr/lib/node_modules' #201

Closed
segmentationfaulter opened this issue Mar 4, 2016 · 4 comments

Comments

@segmentationfaulter
Copy link

I am using vim's syntactic plugin, the plugin was not working with airbnb's .eslintrc, to investigate the issue I tried linting my file from command line by issuing the command $ eslint app.js, it gave the error mentioned in the subject. I am pasting the stack trace here

Referenced from: /home/saqib/blog/.eslintrc
at Function.module.exports as sync
at resolve (/usr/lib/node_modules/eslint/lib/config/config-file.js:417:38)
at load (/usr/lib/node_modules/eslint/lib/config/config-file.js:436:24)
at /usr/lib/node_modules/eslint/lib/config/config-file.js:355:36
at Array.reduceRight (native)
at applyExtends (/usr/lib/node_modules/eslint/lib/config/config-file.js:338:28)
at Object.load (/usr/lib/node_modules/eslint/lib/config/config-file.js:464:22)
at loadConfig (/usr/lib/node_modules/eslint/lib/config.js:67:33)
at getLocalConfig (/usr/lib/node_modules/eslint/lib/config.js:129:23)
at Config.getConfig (/usr/lib/node_modules/eslint/lib/config.js:222:22)

@benmosher
Copy link
Member

I have a coworker who has had to do some gymnastics to get syntactic working as well.
I suspect one or both of eslint and the plugin are not in the same package area.
npm -g list | grep eslint vs cd /home/saqib/blog && npm list | grep eslint?

@decadef20
Copy link

I am encountering this problem.How did you solve it?@segmentationfaulter

@segmentationfaulter
Copy link
Author

@xl-Y still could not solve it.

@benmosher
Copy link
Member

I think you probably need to globally install any ESLint plugins.

Try running npm install -g eslint-config-airbnb in a terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants