-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
Incorrect module path resolving with NODE_PATH in Windows #2443
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
sigh I thought we got rid of lowercasing drive letters. |
I'm unable to reproduce this issue on Node.js v4.2.1. Can you? |
@seishun Problem can be reproduced. I do it on nodejs 5.5.0. D:\Programming\test>node
> process.env.NODE_PATH
'd:\\Programming\\test' And result: D:\Programming\test>node index.js
D:\Programming\test\lib\module.js
d:\Programming\test\lib\module.js |
I'm not sure if it's a bug. It uses the |
Resolved with and without NODE_PATH paths must be the same. It's expected behaviour |
I disagree. The paths definitely don't generally have to be the same, since NODE_PATH could point to a different directory and resolve to a different file. Consider a more obvious example: let's say NODE_PATH involves symlinks. In that case, one would expect cc @nodejs/collaborators other opinions? |
Apart from different strings, what problems does this cause? It's not generically wrong or right. Also, it is not expected: you can have the same issue on OS X. |
Proposing to close this. |
Windows 8.1, io.js 3.0.0
NODE_PATH = D:\Projects\test
index.js:
So I get different paths:
if
NODE_PATH = d:\Projects\test
(lowercased disk letter) all is ok:The text was updated successfully, but these errors were encountered: