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

Install failed for globally install #848

Closed
fengerzh opened this issue May 26, 2017 · 2 comments
Closed

Install failed for globally install #848

fengerzh opened this issue May 26, 2017 · 2 comments

Comments

@fengerzh
Copy link

As below, globally install failed.

> npm install -g eslint
/usr/local/bin/eslint -> /usr/local/lib/node_modules/eslint/bin/eslint.js
/usr/local/lib
└── [email protected]

> npm install -g eslint-plugin-import
/usr/local/lib
├── UNMET PEER DEPENDENCY [email protected] - 3.x
└── [email protected]

npm WARN [email protected] requires a peer of [email protected] - 3.x but none was installed.
@ljharb
Copy link
Member

ljharb commented May 26, 2017

I'd recommend never installing any eslint tools globally; only locally. I'm not sure how to make them work together globally, but perhaps if they're installed in the same command.

@fengerzh
Copy link
Author

Got it. After running:

> sudo npm install -g eslint eslint-plugin-import
/usr/local/bin/eslint -> /usr/local/lib/node_modules/eslint/bin/eslint.js
/usr/local/lib
├── [email protected]
└── [email protected]

It success. This issue can be closed. Thank you!

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

No branches or pull requests

2 participants