Fix NODE_PATH on win32 by henryykt · Pull Request #1122 · pre-commit/pre-commit · GitHub
Skip to content

Fix NODE_PATH on win32 - #1122

Merged
asottile merged 1 commit into
pre-commit:masterfrom
henryykt:bugfix/windows_node_path
Aug 27, 2019
Merged

asottile merged 1 commit into
pre-commit:masterfrom
henryykt:bugfix/windows_node_path

Conversation

@henryykt

Copy link
Copy Markdown
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
Copy Markdown
Member

@asottile

Copy link
Copy Markdown
Member

@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.

2 participants