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)
Are you using Atom by any chance? #272
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鈥檚 end, and they intend to solve it: https://github.com/eslint/eslint/issues/3458.
For anyone getting this, this the specific piece of the README that I needed:
@npverni comment did help me, but wasn't enough. So I had to do what andyeskridge suggested here: https://github.com/facebookincubator/create-react-app/issues/272
Global installation also remove problems in WebStrom, thanks!
Most helpful comment
For anyone getting this, this the specific piece of the README that I needed: