Skip to content
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

Infinite loop when running npm i #630

Closed
dustinsoftware opened this issue Dec 26, 2019 · 2 comments · Fixed by #637
Closed

Infinite loop when running npm i #630

dustinsoftware opened this issue Dec 26, 2019 · 2 comments · Fixed by #637

Comments

@dustinsoftware
Copy link

After installing v0.7.0-beta3, I've now observed a few cases where running npm i causes thousands of processes to spawn. It's hard to tell if this is new behavior; I will attempt a downgrade if I can find a repro. Whenever this happens I have to log out of my workstation to get all the processes to close.

(unreliable) Steps to repro:

  • Open a new instance of Powershell
  • Run npm i, observe it works
  • Run npm i again, observe it hangs and thousands of processes spawn

Screen Shot 2019-12-26 at 12 01 46
Screen Shot 2019-12-26 at 12 01 37
Screen Shot 2019-12-26 at 12 01 29
Screen Shot 2019-12-26 at 11 20 01

@chriskrycho
Copy link
Contributor

Yikes! 😱 Thank you for reporting this (and for testing the beta for us)! A couple follow-up questions—

  • does this ever show up with yarn or only with npm?
  • does it show up more in specific repos?
  • does it happen in non-Powershell environments on Windows, e.g. in CMD?

@charlespierce
Copy link
Contributor

@dustinsoftware That's not good behavior 😦 I know I ran into issues with this in the past, and I documented some of what I found in this issue: #577 However, since we're using the cmd.exe /C "workaround", it's a bit surprising to see it crop up again!

Out of curiosity, is this in a project that has node pinned, or is it using the default Node / npm version (e.g. outside of a project or in a non-pinned project)? If it's outside of a pinned project, do you have npm available from a separate installation, or is Volta the only Node / npm installation you have?

Thanks for reporting and helping us test!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants