Error: Netlify CLI has terminated unexpectedly (latest versions since 22.2.0)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
Describe the bug
Non-stop error repeating very quickly and forever. This has occurred since version 22.2.0.
"Error: Netlify CLI has terminated unexpectedly.
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
npm install -g netlify-cli@VERSION
This repeats forever until I kill VS Code.
Steps to reproduce
Update Netlify via
npm i -g netlify-cli
Configuration
netlify.toml
[[headers]]
for = "/"
[headers.values]
Access-Control-Allow-Origin = ""
[[plugins]]
package = "@netlify/plugin-emails"
[[redirects]]
from = "/projects/ghostwriter"
to = "/projects/2025/artificial-intelligence-designed-fictions-research-studio/ghostwriter/"
status = 301
[[redirects]]
from = "/projects/2025/ai-designed-fictions-research-studio/vibewriter-web-edition"
to = "/projects/2025/artificial-intelligence-designed-fictions-research-studio/vibewriter-web-edition/"
status = 301
[functions]
external_node_modules = ["@sendgrid/mail"]
[dev]
framework = "astro"
Environment
$ npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobePackages netlify-cli
System:
OS: macOS 15.6
CPU: (8) arm64 Apple M2
Memory: 94.11 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified; begin by reproducing with npm i -g netlify-cli on the listed macOS and Node setup, comparing behavior around version 22.2.0. Done means the repeated termination no longer occurs for this configuration, with the relevant behavior verified by a regression test if the project provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100