-
Notifications
You must be signed in to change notification settings - Fork 822
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 Install - Rename Error on global install #2836
Comments
I assume you've tried |
yea, sudo does the same thing. I figured i might not have done that strace correctly since it was so huge. will do another one after work. I didnt stumble across #1529 in researching this issue, so thanks for pointing me at it :) |
I don't think in this instance (considering the magnitude of |
Lol, thanks for assuming that it was a conscious choice to skip threading and not just inexperience. I've updated the link in the first post with a new log file, and the output from the strace command you mentioned. Anyway, to recreate the issue with a clean install of bash: Install NVM Reload path Install latest node reload path again. Try to install a global package. Strangely, I've found that yarn works for installing global packages, so I at least have a work around for the moment. I find it a bit baffling that yarn doesn't run into the same issues. |
FWIW, Native Windows npm does the exact same thing on a ton of packages, when run on a SMB mounted file system in Windows. Sometimes it's possible to get it to complete by running it a few times, but usually it just keeps dying in the same spot. I've taken to locally installing the modules, and using robocopy to dump them over to the SMB share. |
I have a working theory about #1529. The question being, why doesn't that bug (which still hasn't gotten a serious response) take the whole WSL edifice down? I think I know why. The reason is Cygwin/MSYS2. Cygwin has been around for 23 years. What has happened, over course of those 23 years, is people have hit the same I could be wrong, but it is a working theory. |
@therealkenc A key part of my post though, is "when run on a SMB mounted file system". Native npm works fine on a local drive, but on a network share, it fails miserably for many installations, with the same errors that are failing it in WSL. |
2022 still experiencing this issue. |
Windows Build
Microsoft Windows [Version 10.0.16299.125]
Cause
Running npm install -g for any non-trivial sized package (tried with npx, vue-cli, quasar-cli and yeomen, all fail).
Problem
This appears to be the same or very similiar to #2097. This specifically affects global packages however. I've included the npm-log and what I hope is a strace of an attempt to use the command 'npm i -g npx'
NPM Error Example
strace and npm log
PS: First time using strace, so let me know if I didn't run it correctly, and I'll try again.
Edit: Updated with output from the command @therealkenc gave me.
The text was updated successfully, but these errors were encountered: