nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.47k stars 2.33k forks source link

Nx Holding process (port) when terminating the dev server process with Ctrl+C #28425

Open sacru2red opened 2 days ago

sacru2red commented 2 days ago

Current Behavior

terminating the dev server process with Ctrl+C -> can not restart why nx holding port 4200

3348

22358

21838

Expected Behavior

process is terminated after pressing Ctrl+C When you start a server again the port is available for use

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest react-monorepo --preset=react-monorepo
  2. npx nx show project react-store
  3. Use Ctrl+C to stop the process
  4. re-run npx nx show project react-store

Nx Report

Node : 22.7.0 OS : win32-x64 Native Target : x86_64-windows npm : 10.8.3

nx : 20.0.0 @nx/js : 20.0.0 @nx/jest : 20.0.0 @nx/eslint : 20.0.0 @nx/workspace : 20.0.0 @nx/devkit : 20.0.0 @nx/eslint-plugin : 20.0.0 @nx/react : 20.0.0 @nx/web : 20.0.0 @nx/webpack : 20.0.0 typescript : 5.5.4

Registered Plugins: @nx/webpack/plugin @nx/eslint/plugin @nx/jest/plugin

Failure Logs

No response

Package Manager Version

10.8.3

Operating System

Additional Information

No response

ComradeCow commented 1 day ago

28207 has additional details for a possible root cause. This has been happening since 19.8.1