-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Nx operations hangs indefinitely #27494
Comments
Not sure if the issue is related, but I get a similar behavior when upgrading from NX 18 to NX 19. My installation gets stuck on the Using: |
We have some members of our team experiencing this issue too, one reverted to the last version of nx we were on (19.2.3) to get around this fail to install. Would be great to get a fix for this. |
This occurs on Can you also see if any of these environment variables resolve the issue?
|
It try
I tried to use what seems like basic option to remove complexity but nothing changed. |
I have the same problem, both The last version that worked is MacBookPro intel cpu |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
I've suffered from this issue in bitbucket pipelines... 😕 Sometimes it takes so many time to run postinstall |
this is the same: #20270 |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
Similar issue: #28148 |
I have the same problem with pnpm/npm/yarn. NX 19.8.2, Node v20.17.0, PNPM 9.11.0, Apple M2 Pro Edit: although i killed all processes accessing files in the project with |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
Up |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
Bump |
I can also confirm that removing/moving the
I use the "dotfiles" approach to synchronize my common laptop configurations across my laptops/workstations and never would have guessed this would have caused this issue. Thank you @90dy for pointing to that stack overflow question which helped me connect the dots to my dotfiles setup. I am definitely new to the nx toolset/mindset, but is there a reason that nx would need to crawl directories higher than the folder you are calling |
I agree it shouldn't |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
a few recent repros:
automatically closing "stale" issues after only 7 days is a bad practice.
|
It seems the bot is configured to autoremove the tag if the issue is updated by the original poster. Ideally, a user should be able to tell the bot that they've reproduced the bug so a human can confirm and reprioritize. nx/.github/workflows/schedule-stale.yml Line 66 in 05e0679
@JbIPS do these recreations of the issue look correct? If so, could you try editing the issue post? |
Does not work properly at the moment, because of: * issues with cypress and bun: cypress-io/cypress#28962 * issues with nx hang: nrwl/nx#27494
Does not work properly at the moment, because of: * issues with cypress and bun: cypress-io/cypress#28962 * issues with nx hang: nrwl/nx#27494 These issues will have to be addressed later. But for now, I'll merge.
Hello,
I created a new workspace in /opt/dev/workspace and it worked this time. So, and it may only be related to my case, but if nx is installed or run in nested "git root" directories it seems it will hang for an unknown reason. |
I workaround this in a similar way. It's definitely not only you 😁 |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
|
I'm curious why this issue isn't getting the attention it needs to be productive (removing the needs repro label). Is the maintenance team accustomed to this issue being very noisy without progress, and stopped checking? Would it be helpful for @JbIPS to rename this issue to include the cause of the issue in the title? E.g.:
This makes it more clear that (1) this can impact a lot of people (2) it can be really hard to debug (3) we have debugged and know the root cause. If might also be useful if @JbIPS can add the reproductions to the description of the issue. |
(3) I would add that we know only one of the causes - in my case, I don't have any .gitignore or .git above nx repo, and it hangs anyway |
Perhaps we should create a new issue for the one cause we know of and can repro, and leave this issue open for the other potential causes? |
Leaving this here as it might help someone else. I also thought I didn't have any .gitignore above my nx repo, but it turns out I had one in my home ( After I erased that .gitignore, the command stopped hanging. |
Yes I had the same issue! Thank you for pointing it out! |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
I am able to reproduce this issue with both nx versions |
Current Behavior
I'm trying to add Nx to my TS monorepo.
On first try, I installed it (pnpm i nx) but any run would hang on indefinitely. So I removed it, tried to reinstall it but now it hangs at postinstall
I tried other approach like pnpm dlx nx@latest init or even npx nx@latest init but it hangs at
Also tried pnpm dlx create-nx-workspace from scratch but it hangs on the second step
Expected Behavior
Inits operations should complete gracefully
GitHub Repo
No response
Steps to Reproduce
pnpm dlx create-nx-workspace
Nx Report
Failure Logs
No response
Package Manager Version
PNPM v9.7.0 or NPM v10.5.0
Operating System
Additional Information
A common logs I see with
NODE_DEBUG=*
on all the nx command isThe
addressType: NaN
caught my eyes but I don't know if it's relevant. But this logs keeps repeating until it hangs onI tried emptying
/tmp
, restarting,nx clean
but the issue persistsThe text was updated successfully, but these errors were encountered: