# Upgrading an existing Solo installation

> Upgrade an existing Solo installation to the latest release - whether you installed via Homebrew or npm - and perform a clean reinstall when an upgrade leaves a broken or conflicting state.

URL: https://solo.hiero.org/docs/simple-solo-setup/upgrading-solo/

## Overview

If you already have Solo installed, upgrade to the latest release using the same
package manager you originally installed with. This page covers the Homebrew and
npm upgrade paths, switching between them, and a clean-reinstall recipe for when
an upgrade leaves Solo in a broken state.

> ⚠️ **Homebrew support is being deprecated.** Solo will stop publishing updates to Homebrew after August 31, 2026. Existing Homebrew users should migrate to npm before August 31. See [Switching between Homebrew and npm](#switching-between-homebrew-and-npm).

> **Tip:** Check your current version first with `solo --version`, and compare
> it against the latest release on the
> [Solo releases page](https://github.com/hiero-ledger/solo/releases).

## Upgrade a Homebrew install

If you installed Solo with `brew install hiero-ledger/tools/solo`, update
Homebrew's formula list and upgrade:

```bash
brew update
brew upgrade hiero-ledger/tools/solo
```

`brew update` refreshes Homebrew's formulae; `brew upgrade` then installs the
latest Solo (and Node.js, its only Homebrew dependency). Verify the new
version:

```bash
solo --version
```

## Upgrade an npm install

If you installed Solo with npm, re-run the global install with the `@latest` tag
to move to the newest release:

```bash
npm install -g @hiero-ledger/solo@latest
```

> **Note:** Unlike the Homebrew formula, npm does not install Node.js - make
> sure Node.js is present before upgrading. (Solo provisions kubectl, Helm, and
> Kind automatically at deploy time regardless of install method.) After a
> major-version upgrade, re-check the required tool versions in
> [System Readiness](https://solo.hiero.org/docs/simple-solo-setup/system-readiness).

## Resolving an `EEXIST` package-name conflict

Solo is published to npm under two package names - `@hiero-ledger/solo` and
`@hashgraph/solo` - that are mirrors of the same tool. Both install the same
`solo` command-line binary, so only one can be globally installed at a time. If
you already installed Solo under one name and then install it under the other,
npm refuses to overwrite the existing binary and the install fails with
`EEXIST`:

```text
npm error code EEXIST
npm error path /Users/user/.nvm/versions/node/v22.14.0/bin/solo
npm error EEXIST: file already exists
npm error File exists: /Users/user/.nvm/versions/node/v22.14.0/bin/solo
npm error Remove the existing file and try again, or run npm with --force to overwrite files recklessly.
```

This is expected npm behavior - npm will not overwrite a binary owned by a
different package name. To resolve it, uninstall the other package first, then
install the one you want:

```bash
# Switching to the @hiero-ledger namespace
npm uninstall -g @hashgraph/solo
npm install -g @hiero-ledger/solo@latest
```

> **Note:** If you installed under `@hiero-ledger/solo` and want to move to
> `@hashgraph/solo`, swap the names in the commands above.

If the install still reports `EEXIST` after uninstalling - for example because
an orphaned `solo` binary was left behind - remove the leftover binary and
reinstall:

```bash
rm "$(which solo)"
npm install -g @hiero-ledger/solo@latest
```

> **Tip:** To remove every npm copy of Solo regardless of namespace, see
> [Clean up legacy npm installations](https://solo.hiero.org/docs/simple-solo-setup/cleanup#clean-up-legacy-npm-installations).

## Install a specific version

To install a specific (non-latest) Solo release - for example, to reproduce a
bug, run a regression test, or pin a version across a team - use a versioned
Homebrew formula or npm tag instead of `latest`.

> **Note:** A versioned brew formula or npm tag **pins** Solo to that release - it
> will not move when you run `brew upgrade` or `npm update`. To change versions
> later (including returning to the latest release, or **downgrading**),
> switching in place is **not supported**: uninstall Solo first
> (`brew uninstall hiero-ledger/tools/solo`, or `npm uninstall -g @hiero-ledger/solo`),
> then run the versioned install command below for the version you want. This
> keeps your `~/.solo` data - only a [Clean reinstall](#clean-reinstall) removes
> it. If you are switching package managers, see also
> [Switching between Homebrew and npm](#switching-between-homebrew-and-npm).

**Homebrew (deprecated)**
```bash
brew install hiero-ledger/tools/solo@0.76.0
```

The tap publishes a versioned formula (`solo@<version>`) for each release.

**npm**

```bash
npm install -g @hiero-ledger/solo@0.76.0
```

> **Note:** Since Solo v0.95.0, installing Solo does not download container
> images. Run `solo cache image pull` after installing to fill the
> [image cache](https://solo.hiero.org/docs/advanced-solo-setup/image-cache) with that version's
> images (a few minutes and several GB), or install with
> `SOLO_WITH_IMAGE_CACHE=true` (npm). The pull also removes the images of the
> version you upgraded from. Solo v0.74.0 to v0.94.0 downloaded the images
> during every global npm install, unless `SOLO_NO_CACHE=true` was set. The
> deprecated Homebrew formula still downloads them; set
> `HOMEBREW_NO_SOLO_CACHE` to skip it.

Confirm the installed version:

```bash
solo --version
```

> **Tip:** Installing a versioned formula or npm tag **pins** Solo to that
> release - it will not move when you run `brew upgrade` or `npm update`. To
> return to the latest release, follow
> [Upgrade a Homebrew install](#upgrade-a-homebrew-install) or
> [Upgrade an npm install](#upgrade-an-npm-install) above. If you hit a "two
> `solo` binaries on PATH" conflict when switching, remove the other install
> first (see
> [Switching between Homebrew and npm](#switching-between-homebrew-and-npm)).

## Switching between Homebrew and npm

To migrate from Homebrew to npm, remove the Homebrew copy first so you do not
end up with two `solo` binaries on your `PATH`:

```bash
# Remove the Homebrew copy before installing via npm
brew uninstall hiero-ledger/tools/solo
```

Then install via npm following the steps in
[System Readiness](https://solo.hiero.org/docs/simple-solo-setup/system-readiness#platform-setup).

## Clean reinstall

If an upgrade leaves Solo in a broken state - for example, conflicts from an
older install or a partially migrated `~/.solo` - remove Solo and its
configuration, then reinstall.

> **Warning:** This deletes your Solo home directory (`~/.solo`), including the
> [image cache](https://solo.hiero.org/docs/advanced-solo-setup/image-cache), cached configuration,
> and logs. Run `solo cache image pull` after reinstalling to fill the image
> cache again (a few minutes, several GB). Destroy any running deployments first
> with `solo one-shot single destroy` - see the
> [Cleanup guide](https://solo.hiero.org/docs/simple-solo-setup/cleanup).

**Homebrew (deprecated)**

```bash
brew uninstall hiero-ledger/tools/solo
rm -rf ~/.solo
brew install hiero-ledger/tools/solo
```

**npm**

```bash
npm uninstall -g @hiero-ledger/solo
rm -rf ~/.solo
npm install -g @hiero-ledger/solo@latest
```

Confirm the reinstall:

```bash
solo --version
```

For additional cleanup options - removing a legacy npm install, Solo-managed
Kind clusters, and other artifacts - see the
[Cleanup guide](https://solo.hiero.org/docs/simple-solo-setup/cleanup).
