-
Notifications
You must be signed in to change notification settings - Fork 337
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
Support ESLint module install globally via yarn #187
Comments
For those wondering, a workaround on Linux is to set the following: eslint._legacyModuleResolve: true,
eslint.nodePath: "/your/home/dir/.config/yarn/global/node_modules/" |
eslint.nodePath doesn't seem to fix this on Mac |
Does anyone know how to determine the global module location for yarn. I tried |
Under Windows is seems to be |
|
|
@eduedix thanks for opening the yarn issue. |
@dbaeumer I reached out to the FB team and pointed them at this issue. Hoping they'll jump in and help. |
@reybango thanks. I retested this today and yarn still doesn't provide me with command to find the global node modules install location. |
Added a PR here: yarnpkg/yarn#4522 |
Released Yarn 1.1.0 with this PR merged. |
@BYK Thanks! |
Indeed, there is nothing to do with |
Need to add yarn's global module install location to the NODE_PATH when resolving the node module. Something comparable to
npm config get prefix
The text was updated successfully, but these errors were encountered: