Skip to content

Error: Netlify CLI has terminated unexpectedly #7521

@bleeckerj

Description

@bleeckerj

Describe the bug

I get this error after updating to the latest version(s)

"Error: Netlify CLI has terminated unexpectedly"

The error will continue forever. The only way to stop it is to kill the terminal (shell) entirely.

I tried v23.0.0, 22.4.0, 22.3.0 — the most recent version that works properly on my machine is v22.2.0

MacBook Air M2, 2022, 16GB, Sequoia 15.5 running zsh.

I get this error running netlify run dev in my Astro repository.

Steps to reproduce

I just ran netlify run dev on the latest (and near latest) versions of netlify.

Configuration

netlify.toml

[[headers]]
for = "/"
[headers.values]
Access-Control-Allow-Origin = "
"
[[plugins]]
package = "@netlify/plugin-emails"
[functions]
external_node_modules = ["@sendgrid/mail"]
[dev]
framework = "astro"

Environment

System:
OS: macOS 15.5
CPU: (8) arm64 Apple M2
Memory: 284.03 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.13.0 - ~/.nvm/versions/node/v22.13.0/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 11.3.0 - ~/.nvm/versions/node/v22.13.0/bin/npm
pnpm: 9.8.0 - /usr/local/bin/pnpm
bun: 1.2.2 - ~/.nvm/versions/node/v22.13.0/bin/bun
npmPackages:
netlify-cli: ^22.3.0 => 22.3.0
npmGlobalPackages:
netlify-cli: 22.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions