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

Question about / possible bug in normalizePathEnvVar: /mnt/ prefix typically does not exist in WSL #20

Open
cspotcode opened this issue Aug 22, 2019 · 1 comment

Comments

@cspotcode
Copy link

cspotcode commented Aug 22, 2019

https://github.com/pnpm/cmd-shim/blob/master/index.js#L464

This is a question first, but the answer might point to a bug in normalizePathEnvVar

On Windows, it looks like each path in NODE_PATH is prefixed with /mnt/. I'm unfamiliar with Cygwin, but I use WSL a lot. WSL initially mounted Windows drives as /mnt/c/ but these days the /mnt/ prefix is usually omitted, so it's mounted at /c. Might that cause problems with cmd-shim?

I don't know how NODE_PATH is being used, so I'm not sure.

@zkochan
Copy link
Member

zkochan commented Aug 22, 2019

That might cause an issue. NODE_PATH is used by pnpm to help pluggable tools like eslint find their plugins

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

No branches or pull requests

2 participants