nx commands yield "process exited with code 1"
See original GitHub issueCurrent Behavior
nx commands are leaving open a cmd.exe
window with [process exited with code 1]
and some node_modules
on Windows.
Expected Behavior
Nx commands, e.g. nx affected:build
, should run and complete without leaving things open
Steps to Reproduce
mkdir nx-process-exited
npx create-nx-workspace@latest --preset empty code-1
cd .\code-1\
npm i @nrwl/js -D
nx g @nrwl/js:application show-result
nx affected:build
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
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:13 (1 by maintainers)
Hello, I have a similar issue with a Nx NestJS/Angular application. When I run
nx serve api
, a Windows Terminal opens with[process exited with code 1 (0x00000001)]
.I’m using:
Edit : The problem only seems to happen the first time I run the command after turning on my pc.
I can confirm that disabling the daemon resolves the issue, but that is not ideal.