Error Popup on every nx command (probably from node_modules\nx\src\daemon\server\start.js)
See original GitHub issueCurrent Behavior
When running any nx command, like nx run my-app:build
or nx run my-app:test
for the first time (after a reboot, for instance) a cmd window pops up, simply stating [process exited with code 1 (0x00000001)]
:
The run still seemingly completes correctly. After that every subsequent run of any nx command completes without error.
On closer inspection I found that a node process is spawned and called with the following arguments:
"C:\Program Files\nodejs\node.exe" C:\my-workspace\node_modules\nx\src\daemon\server\start.js
This process persists even after closing the terminal. Killing this process manually and then running any nx command makes the error come back.
Expected Behavior
No cmd windows with errors pop up.
Steps to Reproduce
This was encountered on a Windows machine version 21H2 (OS Build 22000.739). Used shell was PowerShell Core 7.2.4 AND regular PowerShell 5.1.22000.653
Repro:
- run
npx create-nx-workspace@latest test-workspace
, chooseangular
andscss
and cloud integration. - run
nx run my-app:test
- Error should appear
Environment
nx report of created workspace:
Node : 16.15.0
OS : win32 x64
npm : 8.5.5
nx : 14.3.6
@nrwl/angular : 14.3.6
@nrwl/cypress : 14.3.6
@nrwl/detox : Not Found
@nrwl/devkit : 14.3.6
@nrwl/eslint-plugin-nx : 14.3.6
@nrwl/express : Not Found
@nrwl/jest : 14.3.6
@nrwl/js : 14.3.6
@nrwl/linter : 14.3.6
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 14.1.2
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.3.6
@nrwl/web : 14.3.6
@nrwl/workspace : 14.3.6
typescript : 4.7.4
---------------------------------------
Community plugins:
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:25
Top GitHub Comments
Not a stale.
I can only agree with @Jejuni. It has become worse on Windows. It would be great if you can fix that. Please do not stale.