TLDR:

brew uninstall git
brew update
brew reinstall pcre2 gettext
brew install git
brew reinstall node

I'm sure there's a more surgical solution (e.g., maybe you don't need brew reinstall pcre2 gettext), but this ^^ worked for me. Below is the path I took:

Skimming some google results, seemed it was at least partly due to the new M1 silicon and the minor MacOS update to 11.2.2. Tried to brew update and got:

Error: Failure while executing; `git config --replace-all homebrew.analyticsmessage true` was terminated by uncaught signal KILL.

Which led me to this: https://github.com/Homebrew/brew/issues/10275#issuecomment-757351887. After doing these uninstall, reinstall, installs, I finished with a brew reinstall node and voilà! Didn't need to uninstall node and install from scratch:

an@As-Air ~ % node -v
v15.11.0
Answer from albielin on Stack Overflow
🌐
GitHub
github.com › nexus-xyz › nexus-cli › issues › 1712
"zsh: killed" when start CLI node · Issue #1712 · nexus-xyz/nexus-cli
July 12, 2025 - when start CLI node i got error " zsh: killed nexus-network start --node-id "xxxxxx"
Author   nexus-xyz
Discussions

node.js - Issues with Zshell and Nodejs - Stack Overflow
So a while back Apple switched to Zshell and I had issues getting some things like NPM to work so I followed this answer on Stack and added this in the .zshrc source /Users/Scott/.bashrc A few days... More on stackoverflow.com
🌐 stackoverflow.com
Terminal zsh:killed - Apple Community
When I open Terminal the first I see is: zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR" Whenever i try to run a command the same problem occurs: Desktop % ls zsh: killed ls It happened after I was trying to install mongoDB I've checked my system's resources and there doesn't seem to be any ... More on discussions.apple.com
🌐 discussions.apple.com
June 7, 2023
Installed homebrew programs return "zsh: killed"
Is your shell bash or zsh? More on reddit.com
🌐 r/MacOS
16
3
May 11, 2022
zsh killing some commands but not others - Apple Community
I did where node and I had a weird path that didn't look right so I did an rm -r on it. This was my command: ... After this it doesn't look like there are any issues with my terminal anymore. If anyone in the future has this problem it seems to be a path issue so first fix your .zshrc file to ... More on discussions.apple.com
🌐 discussions.apple.com
September 26, 2023
🌐
GitHub
github.com › prisma › prisma › issues › 14058
macOS 12 sometimes kills Node.js process when loading the QE library · Issue #14058 · prisma/prisma
June 29, 2022 - https://www.reddit.com/r/node/comments/vj4atm/prisma_314_315_node_crash/ Some "keywords" to make this issue googleable and maybe gather more cases: zsh: killed npx prisma generate · zsh: killed ts-node index.ts · zsh: killed npm start · Reactions are currently unavailable ·
Author   prisma
🌐
GitHub
github.com › vmattos › kill-node
GitHub - vmattos/kill-node: zsh plugin for murdering node proc families
zsh plugin for murdering node proc families. Contribute to vmattos/kill-node development by creating an account on GitHub.
Author   vmattos
🌐
Stack Overflow
stackoverflow.com › questions › 71182350 › issues-with-zshell-and-nodejs
node.js - Issues with Zshell and Nodejs - Stack Overflow
Seems like you have installed nodejs from the official source, which is located at /usr/local/bin/node. this causes commands like "npm install -g" not to work because of the insufficient permissions.
🌐
Apple Community
discussions.apple.com › thread › 254910900
Terminal zsh:killed - Apple Community
June 7, 2023 - That Zsh HERE script works fine in a properly functional Zsh shell and should not bork with a zsh: killed error.
🌐
Thearender
thearender.com › forums › products › thea node v3.x › support
"zsh: killed ./TheaNode" | Thea Render Community
April 5, 2024 - Thea Node v3.x · Support · You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser. Thread starter .schnittbrot · Start date Apr 5, 2024 · S · Reaction score · 0 · Points · 1 · Apr 5, 2024 · #1 · Hello I want to start TheaNode v3.5.008 on a Mac M2 Pro Ventura. But I always get this termination in the terminal. "zsh: killed ./TheaNode" Forums ·
🌐
Reddit
reddit.com › r/macos › installed homebrew programs return "zsh: killed"
r/MacOS on Reddit: Installed homebrew programs return "zsh: killed"
May 11, 2022 -

When I type brew, I get the output:

zsh: killed     brew

Writing out the whole path still gives the same output, so it doesn't seem like a path problem.

Furthermore, running /bin/bash gives the output:

zsh: killed     /bin/bash

I changed the names of .zshrc and .zprofile, yet the problem still persisted.

To add on, this problem also occurs with programs like pyenv.

Find elsewhere
🌐
Apple Community
discussions.apple.com › thread › 255154958
zsh killing some commands but not others - Apple Community
September 26, 2023 - I did where node and I had a weird path that didn't look right so I did an rm -r on it. This was my command: ... After this it doesn't look like there are any issues with my terminal anymore. If anyone in the future has this problem it seems to be a path issue so first fix your .zshrc file to just and your access to commands should come again.
🌐
Medium
medium.com › @fraycs › how-to-solve-zsh-killed-on-macos-ventura-5c1b01d1ed8a
How to solve zsh: killed on MacOS Ventura | by Sebastían Pulido | Medium
February 1, 2023 - #if you have something like this in your .zshrc export PATH="$HOME/bin:/usr/local/bin:$PATH" # just comment out that line by adding a # at the beginning # export PATH="$HOME/bin:/usr/local/bin:$PATH"
🌐
Image.sc
forum.image.sc › usage & issues
Update ZSH killed during training - Usage & Issues - Image.sc Forum
September 28, 2023 - I posted here a little while ago regarding the ZSH killed issue I’ve been experiencing. I tried erasing the program, environment, really everything associated with DLC and trying again. I’m still running into some issues, at about iteration ~3500 the program returns: zsh: killed python -m deeplabcut I’m provided with this traceback when restarting as well: Traceback (most recent call last): File "/Users/jakeziegler/Desktop/deeplabcut/DeepLabCut/deeplabcut/gui/tabs/train_network.py", lin...
🌐
Apple Community
discussions.apple.com › thread › 253726078
zsh: killed - Apple Community
Which probably means PATH is incorrect, or that something in the zsh login script files is off.
🌐
Stack Exchange
apple.stackexchange.com › questions › 467398 › zshkilled-command-grep-q-fx-zcompdump-revision-zsh-compdump-2-dev-nul
iterm - zsh:killed command grep -q -Fx "$zcompdump_revision" "$ZSH_COMPDUMP" 2> /dev/null - Ask Different
zsh: killed command grep -q -Fx "$zcompdump_revision" "$ZSH_COMPDUMP" 2> /dev/null zsh: killed zsh: killed [19] 65420 killed [19] 65423 killed · I have tried uninstalling zsh and installing it again. I have also disabled all the plugins and themes in the ~/.zshrc but that doesn't change anything. After uninstalling and installing it again, I am unable to use most of the tools installed and set in the path in ~/.zshrc now (e.g., nvm, node, npm etc).
🌐
MacRumors
forums.macrumors.com › macs › macos › older macos versions › macos big sur (11)
Killed 9 issue on any npm installation in terminal | MacRumors Forums
May 2, 2021 - Follow this. Then run find / '*node*' and delete all related node files. Do the same for all find / '*npm*'. Then run brew doctor and then brew prune. uninstall homebrew and restart your machine.
🌐
Reddit
reddit.com › r/monerosupport › ./monerod unexpected closure error crash help?
r/monerosupport on Reddit: ./monerod unexpected closure error crash HELP?
April 3, 2023 -

Hi, I've been trying to mine monero for days. I have been using monero wallet gui for some time but always via remote node to avoid taking up too much disk space and everything has always worked as it should. Reading about mining, it was recommended to use a local node and to download the blockchain to your computer and that's what I've been trying to do for days. Doing it via monero wallet gui, when it finishes downloading the blockchain, the loading bars go back to empty and when I try to start the daemon I get a warning that the monerod process has unexpectedly closed or it doesn't simply start. I had to delete and start again to download the blockchain several times. I've had other problems too but still haven't been able to download the blockchain. Then I tried to download the blockchain directly via the terminal command "./monerod --prune-blockchain" without starting monero wallet gui. It seemed that everything was finally going well but, obviously, having reached 98% of the synchronization after days of download the process is stopped and the terminal says "zsh: killed ./monerod --prune-blockchain" with an attached mac error message which says that there is an unexpected termination of the monerod process that keeps repeating every time I run the terminal command. The error log is this: https://logpaste.com/ZmR2Ehup

I repeat that monero wallet gui had always worked via remote nodes, however, wanting to try to mine via p2pool, I wanted to download the blockchain but it seems that in my case it is impossible. Can anyone help me solve? I wouldn't want to cancel the blockchain I downloaded once again because as I said I had reached 98% and therefore I was close to it. Even trying to run monerod by starting monero wallet gui (start daemon) I always get the same unexpected closure error. I'm using a mid 2012 MacBook Pro running MacOS 13.3 via OpenCore Legacy Patcher with 8gb RAM and 500gb internal SSD. How could I solve this?

🌐
Reddit
reddit.com › r/youtubedl › "zsh: killed" error immediately after every command on m1 macbook
r/youtubedl on Reddit: "ZSH: Killed" Error immediately after every command on M1 MacBook
February 11, 2021 -

Hi, I'm pretty new to homebrew and the whole command line thing on the Mac, so please be kind ;) Every time I try to use YouTube-DL this happens:

youtube-dl --verbose "https://www.youtube.com/watch?v=lKeUCkBO8QA" zsh: killed youtube-dl --verbose "https://www.youtube.com/watch?v=lKeUCkBO8QA"

I spend hours googling for help, but I couldn't find anything. Can someone please explain to me what's going on there and wtf is killing that process?

Btw I got Vidl installed also.