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

Fix NODE_PATH on win32 #1122

Merged
merged 1 commit into from Aug 27, 2019
Merged

Conversation

henryykt
Copy link
Contributor

Ran into an issue where specifying additional plugins for eslint using additional_dependencies (as suggested on https://github.com/pre-commit/mirrors-eslint) doesn't work in windows. Node would fail to find any installed plugin.

Turns out on win32 nodeenv installs modules into /Scripts/node_modules (instead of /lib/node_modules). See https://github.com/ekalinin/nodeenv/blob/1.3.3/nodeenv.py#L745

@asottile
Copy link
Member

can you show a bug report first? I'd like to see what you're running into before blindly committing a fix -- thanks!

@asottile
Copy link
Member

can confirm this fixes the issue -- thanks for the reproduction! made it very easy for me to verify this using a modern.ie VM 🎉

@asottile asottile merged commit 47fb42c into pre-commit:master Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants