Skip to content

Debugging with NODE_OPTIONS='--inspect=0.0.0.0' return error: /usr/bin/node: must be 0 or in range 1024 to 65535. #66189

@microhobby

Description

@microhobby

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/wonderful-moser-go8s7s?file=%2Fpackage.json%3A19%2C1&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clwl0fp5d00063j6l0rorvhsm%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clwl0fp5d00023j6lpfioe1jp%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clwl0fp5d00043j6luyzcqadk%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clwl0fp5d00053j6lcvi1dbwo%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clwl0fp5d00023j6lpfioe1jp%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clwl0fp5c00013j6lktzui6rv%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522id%2522%253A%2522clwl0gtyi00203j6lud1d36pq%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A19%252C%2522startColumn%2522%253A1%252C%2522endLineNumber%2522%253A19%252C%2522endColumn%2522%253A1%257D%255D%252C%2522filepath%2522%253A%2522%252Fpackage.json%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522clwl0fp5d00023j6lpfioe1jp%2522%252C%2522activeTabId%2522%253A%2522clwl0gtyi00203j6lud1d36pq%2522%257D%252C%2522clwl0fp5d00053j6lcvi1dbwo%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clwl0fp5d00053j6lcvi1dbwo%2522%257D%252C%2522clwl0fp5d00043j6luyzcqadk%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clwl0fp5d00033j6lskje51j3%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%255D%252C%2522id%2522%253A%2522clwl0fp5d00043j6luyzcqadk%2522%252C%2522activeTabId%2522%253A%2522clwl0fp5d00033j6lskje51j3%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

To Reproduce

Run:

NODE_OPTIONS='--inspect=0.0.0.0' next dev

Current vs. Expected behavior

Current:

> [email protected] dev
> NODE_OPTIONS='--inspect=0.0.0.0' next dev

Debugger listening on ws://0.0.0.0:9229/db48e9fb-b4a2-4600-ac6e-b339eb2c1337
For help, see: https://nodejs.org/en/docs/inspector
/usr/bin/node:  must be 0 or in range 1024 to 65535.

Expected:
Be able to set the NODE_OPTIONS --inspect with a custom IP and address.

Provide environment information

Operating System:
  Platform: linux
  Arch: arm64
  Version: #1-TorizonCore SMP PREEMPT Thu Apr 11 16:18:46 UTC 2024
  Available memory (MB): 3923
  Available CPU cores: 4
Binaries:
  Node: 18.20.3
  npm: 10.7.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: 14.2.3
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: standalone
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Wed May 15 19:51:07 -03 2024
  Available memory (MB): 31915
  Available CPU cores: 20
Binaries:
  Node: 20.11.1
  npm: 10.4.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: N/A
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

Developer Experience, Instrumentation

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

Apparently, this should have been fixed with #59530
but the error remains the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions