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

Atom not finding prettier-plugin-elm #36

Closed
jwoLondon opened this issue Oct 5, 2019 · 0 comments
Closed

Atom not finding prettier-plugin-elm #36

jwoLondon opened this issue Oct 5, 2019 · 0 comments
Labels
blocked For issues that are blocked by other upstream issues

Comments

@jwoLondon
Copy link
Member

For the record:

As indicated in #33, Atom was failing to use prettier-plugin-elm, in cases where npm was not installing packages in the default location. A common use-case is not wishing, or not being able, to use admin privileges and therefore setting the npm global location to be somewhere in user account space (e.g. via nvm or set prefix).

The result is that Atom defaults to its bundled version of prettier rather than the custom elm version and as consequence, elm-format would not be applied to elm code blocks.

The cause of the the problem can be traced back to prettier-atom using global-prefix to detect npm global package locations.

Described and fixed in prettier/prettier-atom#516

@jwoLondon jwoLondon added the blocked For issues that are blocked by other upstream issues label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked For issues that are blocked by other upstream issues
Projects
None yet
Development

No branches or pull requests

1 participant