nx commands yield "process exited with code 1"

See original GitHub issue

Current 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:open
  • Created 2 years ago
  • Reactions:11
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
fwauterscommented, Apr 26, 2022

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:

  • Windows 11 (21H2 Build 22000.613)
  • VSCode 1.66.2
  • Nx 13.9.6

Edit : The problem only seems to happen the first time I run the command after turning on my pc.

1reaction
pf1guracommented, Dec 19, 2022

I can confirm that disabling the daemon resolves the issue, but that is not ideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process Exited with Code 1? Here's how to fix | SoftwareKeep
Method 1. Run a PowerShell Command To Delete the AutoRun Key · Method 2. Delete AutoRun Key Manually · Method 3. Create a...
Read more >
NX Unable to complete project graph creation. Worker ...
It is good idea to create an nx workspace ( npx ... 1. remove the `node_modules` 2. npm cache verify 3. npm install...
Read more >
Windows 11 CMD error: [process exited with code 1]
I am dealing with an extremely frustrating error with the command prompt in Windows 11. Whenever I try to open cmd.exe or run...
Read more >
Nastran Dmap Error Message List - Siemens PLM
NX Nastran displays User Information, Warning, and Error messages in the printed output. The ... SUBCASE %1 CONTAINS THE ANALYSIS = %2 COMMAND...
Read more >
looking for exit code in exit codes table
Displays for Basic+Codes POP Discount 10. c:\>powershell -noprofile -command “Write. The EXIT statement will stop the process and set the exitcode to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found