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 commands yield "process exited with code 1" #8902
Comments
maybe you can see |
Same thing happend in Windows Terminal - it spawn new window with "process exited with code 1" first time NX daemon in started. After OS restart or "nx clear-cache" - appears again. |
Oh 'nx clear-cache' is a more convenient workaround than restarting while this is worked. |
For me its not workaround, but one of two things that cases window to appear again. It dont cause any crashes for me, just spawns annoying window. I just close it and return to main terminal. As i see it, nx daemon spawns some process on start. which opens in Windows as new window. Clear-cache or OS restart kills daemon - so next time window appear again. Although im not sure its its causes by new NX version on new Windows Terminal... |
I see. Yes the restarting is necessary because my project is so new that I'm still churning my node_modules folder. Those files therein mentioned above are left in use. Perhaps I could kill some process to close them but it's beyond my capabilities to find which. I am also using Windows Terminal. And PowerShell FWIW. |
I'm having the same issue (#9671, which I now closed since it was a duplicate of this). Is there any update or workaround available? |
@LuckeeDev your issue mentions NextJS. I found the problem could be reproduced with just a |
Yes, I mentioned NextJS because I only tested this in a workspace with it. However, I suspect this might be related to NX on Windows and not to a specific NX package. |
Hello there, For me, the file Opening the workspace in VSCode is enough to lock the file (without running any Nx command), however, this problem disappeared after uninstalling the Using:
|
Hello, I have a similar issue with a Nx NestJS/Angular application. When I run I'm using:
Edit : The problem only seems to happen the first time I run the command after turning on my pc. |
This is happening on MacBook
|
Hello, I also have a terminal that opens when I run an NX command on Windows 11. I don't have this anymore when I disable with |
I can confirm that disabling the daemon resolves the issue, but that is not ideal. |
And almost a year, and it became even worse - running prisma migrate spams now dozen of CMD flashing windows for almost a minute... |
did you find a solution to this problem? |
@FullDream its maybe fixed by #10822 (comment), was included in 15.7.0 changelog - but can't say for sure - that release bring again new problems - reverted back... |
This should have been fixed with: #14965 Can you please retry with the |
installing 15.8.1 fixed the issue |
My impression is that this should be fixed in latest. With @FullDream confirming it, I'm going to close this out as we have addressed the root cause. If folks are still experiencing the problem, feel free to comment and it can be reopened. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
nx commands are leaving open a
cmd.exe
window with[process exited with code 1]
and somenode_modules
on Windows.Expected Behavior
Nx commands, e.g.
nx affected:build
, should run and complete without leaving things openSteps to Reproduce
Failure Logs
a cmd.exe window with
[process exited with code 1]
is left open (maybe 2 of them)also. I observe that these files are left open and are not deletable without a restart
C:\code-1\node_modules\@parcel\watcher\prebuilds\win32-x64\node.napi.glibc.node
C:\code-1\node_modules\@nrwl\workspace\src\core\project-graph\daemon\client
I am not aware of any logs
Environment
Node : 14.17.5
OS : win32 x64
npm : 7.24.1
nx : 13.7.3
@nrwl/angular : undefined
@nrwl/cli : 13.7.3
@nrwl/cypress : undefined
@nrwl/detox : undefined
@nrwl/devkit : 13.7.3
@nrwl/eslint-plugin-nx : 13.7.3
@nrwl/express : undefined
@nrwl/jest : 13.7.3
@nrwl/js : 13.7.3
@nrwl/linter : 13.7.3
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : 13.1.2
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : undefined
@nrwl/tao : 13.7.3
@nrwl/web : undefined
@nrwl/workspace : 13.7.3
typescript : 4.5.5
rxjs : 6.5.5
The text was updated successfully, but these errors were encountered: