You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have also encountered this same issue on Windows 11, node.js version v22.7.0, npm version 10.8.2, default config so I believe it has still persisted across versions. The same modification as the OP appears to have fixed the issue. Isn't it about time we made this a PR?
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Try to install something on global
npm install -g [package]
an error is thrown:I added some logging to realpath.js to see what it was doing...
Expected Behavior
Expected bahavior...it works? i guess.
Given this the repeating directory error, I changed line 33 from:
to
so that it recognizes that it has ascended as far as it can and reached the effective 'base'.
I'm no node.js/npm master, so i don't claim that this is a good fix but, i can install things globally now.
Steps To Reproduce
Windows 11. local Domain joined to Windows server, using folder redirection.
I'm not sure what other information to provide here. In this environment, all you have to do is try to install something globally and it fails.
Environment
The text was updated successfully, but these errors were encountered: