Skip to content

Bun throws error when not having Node installed #4182

@MickL

Description

@MickL

Environment

macOS 26.4

Reproduction

bunx create-nitro-app

Describe the bug

On a fresh system with only Bun installed (no Node) the following error is thrown:

error: Expected a Response object, but received 'NodeResponse {
  status: [Getter],
  statusText: [Getter],
  headers: [Getter],
  ok: [Getter],
  _response: [Getter],
  _toNodeResponse: [Function: _toNodeResponse],
  arrayBuffer: [Function],
  blob: [Function],
  body: [Getter],
  bodyUsed: [Getter],
  bytes: [Function],
  clone: [Function],
  formData: [Function],
  json: [Function],
  redirected: [Getter],
  text: [Function],
  type: [Getter],
  url: [Getter],
}'
10:50:42 PM [vite] Internal server error: Parse Error
      at unknown
      at <anonymous> (node:_http_client:230:56)
      at processTicksAndRejections (native:7:39)

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions