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

Globally installed eslint by yarn does not have executable link #5548

Open
hanxue opened this issue Mar 20, 2018 · 2 comments
Open

Globally installed eslint by yarn does not have executable link #5548

hanxue opened this issue Mar 20, 2018 · 2 comments
Assignees
Labels

Comments

@hanxue
Copy link

hanxue commented Mar 20, 2018

If the current behavior is a bug, please provide the steps to reproduce.
After installing eslint globally, there is no eslint executable

$ yarn global add eslint
yarn global v1.5.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Installed "eslint@4.19.0" with binaries:
      - eslint
✨  Done in 7.37s.
$ which eslint
$ ls ~/.yarn/bin/eslint
ls: /Users/hanxue/.yarn/bin/eslint: No such file or directory

Installing eslint globally with npm works though

$ npm i -g eslint
/usr/local/bin/eslint -> /usr/local/lib/node_modules/eslint/bin/eslint.js
+ eslint@4.19.0
added 139 packages in 24.786s
$ which eslint
/usr/local/bin/eslint

What is the expected behavior?
There should be a link at ~/.yarn/bin/eslint

Please mention your node.js, yarn and operating system version.
node: v9.8.0
yarn: 1.5.1
macOS: 10.10.5

@ghost ghost assigned rally25rs Mar 20, 2018
@ghost ghost added the triaged label Mar 20, 2018
@lffg
Copy link

lffg commented Apr 14, 2019

+1

1 similar comment
@mcgraths7
Copy link

+1

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

No branches or pull requests

4 participants