-
Notifications
You must be signed in to change notification settings - Fork 1.3k
wsl is freeze on installing packages by npm install #11670
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
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
Diagnostic information
|
Thank you @haw0k . Can you share an strace of the process that freezes ? (strace -f ) |
Best environment for reproducing: The nextjs empty project created by |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue. Thank you! |
Did any of you manage to fix this? I'm getting this now, and it only happens if there is no |
Newest versions, same buggy behavior.
|
Today it worked again. Updated to latest wsl by manually downloading from releases, and installed node and npm with volta. No idea what fixed it, seems a little random.
|
This is perhaps related to these two issues which seem to be resolved with releases in npm with version I was using |
Hey all, this really stumped me and I was googling for hours, found the post about network resolve configuration changes for wsl but it didn't work for me. The root issue ended up being that I needed to reconfigure npm to use the WSL bash shell for running scripts instead of Windows cmd.exe. This can sometimes require installing Node.js from within WSL itself from what I can tell. Simple script to take care of this for you on a clean WSL Ubuntu distro that:
(Note: I did have to run
|
Uh oh!
There was an error while loading. Please reload this page.
Windows Version
Microsoft Windows [Version 10.0.22631.3593]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu 22.04.3 LTS
Other Software
NodeJS v20.14.0
Repro Steps
Ubuntu 22.04.3 LTS
terminalcd some_project_with_package.json
npm install
Expected Behavior
The terminal continuously displays the package installation process.
Actual Behavior
WSL terminal freezes.
The npm process won't exit by the Ctrl+C command.
The npm process exists.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: