Skip to content

Nx graph fails silently if port already taken #30915

@ItamarGronich

Description

@ItamarGronich

Current Behavior

when running nx graph but the port is already taken the command fails silently with no error message indicating what happened

Expected Behavior

nx graph errors out with a correct error indicating what happened

GitHub Repo

https://github.com/ItamarGronich/nx-graph-port-taken

Steps to Reproduce

This reproduction repo was tested only on a mac

  1. clone the repo
  2. run ./test.sh

Nx Report

Node           : 20.19.1
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.2

nx (global)    : 20.8.1
nx             : 20.8.1
@nx/js         : 20.8.1
@nx/workspace  : 20.8.1
@nx/devkit     : 20.8.1
typescript     : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
---------------------------------------
Cache Usage: 0.00 B / 46.04 GB

Failure Logs

none

Package Manager Version

npm 10.8.2

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions