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

"Cannot find module 'eslint-plugin-react'" when trying to run standard #1329

Closed
BinaryBen opened this issue Jul 12, 2019 · 2 comments

Comments

@BinaryBen
Copy link

commented Jul 12, 2019

What version of standard?

Not sure, I assume latest. Below error appears event when trying to run what I pressume should be a version command (standard -v or standard -V)

What operating system, Node.js, and npm version?

macOS Sierra 10.12.6, v11.1.0, 6.9.0 respectively

What did you expect to happen?

I assume a list of things that didn't meet standard's standard

What actually happened?

standard: Unexpected linter output:

Error: Failed to load plugin 'react' declared in '--config » eslint-config-standard-jsx': Cannot find module 'eslint-plugin-react'
Require stack:
{ ... }
If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues

Let me know if you need the full output within { ... }

I have already tried installing eslint and eslint-plugin-react globally but that did nothing.

@feross

This comment has been minimized.

Copy link
Member

commented Jul 12, 2019

Thanks for the issue. There is a bug right now where standard doesn't work when installed globally. Looking into it now.

@feross

This comment has been minimized.

Copy link
Member

commented Jul 12, 2019

This should be fixed in standard 13.0.2.

@feross feross added the bug label Jul 12, 2019

@feross feross closed this in d1d0b7a Jul 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.