-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
npm broken under windows (v2.2.1 and v2.2.2 nightly) #1940
Comments
This is absolutely normal behavior. AFAIR, global modules have always been installed into |
What is the point of installing global modules if they are not accessible with "require" ? This behavior is different from the what npm does on Mac OS X, why have different behavior on different platforms ? |
I'm seeing this same behavior on OS X. I am seeing it on Node v0.10.36 as well as io.js, so I don't think it's a bug. But that last path under I haven't bothered (yet, at least) looking in to how and why that last path gets set, but one can certainly be forgiven for thinking it's a probable bug. |
Sorry for the noise and my misunderstanding. It is good to know that global modules are not seen by scripts as this global installation "feature" of other packaging systems is a nightmare. Happy to see that this behaviour is consistent across platforms. I am closing this now. @Trott if this path thing is a bug, please open another issue. |
Looking at the code, I do think this is actually a bug. I'll open a separate ticket. |
Opened #1946 |
Is it just me or is iojs broken on Windows ?
When I install a global module, it gets installed in HOME/AppData/Roaming/npm/node_modules but this path is not searched in Module.require (see below).
Shouldn't global modules be installed in Program Files/lib/node ?
The text was updated successfully, but these errors were encountered: