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: Failed to load plugin flowtype: Cannot find module 'eslint-plugin-flowtype' #274

Closed
FE-Mars opened this issue Jul 29, 2016 · 5 comments

Comments

@FE-Mars
Copy link

FE-Mars commented Jul 29, 2016

Nodejs v6.2.2 npm v3.10.6

Error: Failed to load plugin flowtype: Cannot find module 'eslint-plugin-flowtype'
Referenced from: /Users/xxx/xxx/package.json
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.module.exports.load (/Users/xxx/.atom/packages/linter-eslint/node_modules/eslint/lib/config/plugins.js:114:26)
at Array.forEach (native)
at Object.module.exports.loadAll (/Users/wangjun/.atom/packages/linter-eslint/node_modules/eslint/lib/config/plugins.js:136:21)
at load (/Users/xxx/.atom/packages/linter-eslint/node_modules/eslint/lib/config/config-file.js:500:21)
at /Users/xxx/.atom/packages/linter-eslint/node_modules/eslint/lib/config/config-file.js:386:36
at Array.reduceRight (native)

@alexzherdev
Copy link
Contributor

Are you using Atom by any chance? #272

@gaearon
Copy link
Contributor

gaearon commented Jul 29, 2016

Please follow these instructions for integrating linting with your editor:

https://github.com/facebookincubator/create-react-app/blob/master/template/README.md#display-lint-output-in-the-editor

It is unfortunate that we require global installation but this is a problem on ESLint’s end, and they intend to solve it: eslint/eslint#3458.

@gaearon gaearon closed this as completed Jul 29, 2016
@npverni
Copy link
Contributor

npverni commented Aug 12, 2016

For anyone getting this, this the specific piece of the README that I needed:

screen shot 2016-08-12 at 10 49 51 am

@rafaeleyng
Copy link

@npverni comment did help me, but wasn't enough. So I had to do what andyeskridge suggested here: #272

@luckyyang
Copy link

Global installation also remove problems in WebStrom, thanks!

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants