Node version managers on a Mac: nvm, fnm and Volta installs measured, and which one can remove a Node version
Three Node versions installed through a version manager took 664 MB with nvm, 690 MB with fnm and 777 MB with Volta, and that is before you count a single project. We installed Node 20, 22 and 24 through each tool in a scratch folder, added two global packages, measured every folder, then removed the old versions the way each tool allows. The three tools do not clean up the same way, and one of them cannot remove a Node version at all.
What we measured
- Tools: nvm 0.40.3, fnm 1.39.0 and Volta 2.0.2, each in its own folder under
/tmp, with a scratch home folder so nothing touched the real one. - Node versions: 20.20.2, 22.23.5 and 24.22.3, the newest release of each line on 17 November 2026.
- Global packages:
typescriptandprettier. With nvm and fnm they were installed withnpm i -ginside each version. With Volta they were installed once withvolta install. - Sizes are
du -sknumbers (space on disk) in MB of 1,048,576 bytes, from one Apple M4 Mac mini on macOS 27.0.1.
Three installs side by side
| Where | nvm | fnm | Volta |
|---|---|---|---|
| Node 20.20.2 + globals | 194.9 | 205.4 | 164.7 (globals kept apart) |
| Node 22.23.5 + globals | 228.2 | 232.4 | 191.4 |
| Node 24.22.3 + globals | 240.5 | 252.4 | 211.5 |
| Kept download archives | 73.0 (.cache, .tar.xz) | none | 139.1 (tools/inventory, .tar.gz) |
| Global packages, shared | — | — | 41.1 (tools/image/packages) |
| The tool itself | 2.8 | — | 29.0 (bin) |
| Whole tool folder | 739.4 | 690.2 | 776.8 |
Every version is large because Node itself is. In the 24.22.3 folder, measured with nvm:
| Part of one Node 24 install | MB |
|---|---|
bin/node (the program, 122,586,000 bytes) | 116.9 |
include/ (C++ headers for building native add-ons) | 64.4 |
lib/node_modules/npm | 16.3 |
typescript (global, 7.0.2) | 30.0 |
prettier (global, 3.10.1) | 11.1 |
corepack | 0.8 |
A plain Node 20 with only the bundled npm was 153.7 MB; the two globals added 41.1 MB to it, and nvm and fnm repeat that 41 MB in every version. Volta keeps one copy of each package, so its three Node folders are 29 to 41 MB smaller.
The same file is bigger with fnm and Volta
The <code>node</code> file is 122,586,000 bytes in all three tools, but <code>stat</code> showed 239,432 blocks of 512 bytes under nvm (116.9 MB) and 263,816 blocks under fnm (128.8 MB). Volta's copy measured 129.0 MB. That is about 12 MB per version that fnm and Volta allocate beyond the file's length. We did not find out why (we suspect how each tool writes the file out); we only know that <code>du</code> counts it. It is the reason fnm's 24.22.3 folder is 12 MB larger than nvm's although both hold the same files.
Removing old versions, tool by tool
| Step | nvm | fnm | Volta |
|---|---|---|---|
| Remove Node 20 and 22 | nvm uninstall 20.20.2, then 22.23.5: 739.4 → 316.3 MB (−423.1) | fnm uninstall 20.20.2, then 22.23.5: 690.2 → 252.4 MB (−437.8) | volta uninstall node@20.20.2 fails: “Uninstalling node is not supported yet.” (also for plain node) |
| What is left behind | the 73.0 MB archive cache | nothing | everything: the image folders and the 139.1 MB of archives |
| Clear the leftovers | nvm cache clear: 316.3 → 243.2 MB (−73.1) | — | delete tools/image/node/20.20.2, …/22.23.5 and their node-v…tar.gz and node-v…-npm files by hand: 776.8 → 332.7 MB (−444.1) |
| Remaining | 243.2 MB: Node 24 plus the 2.8 MB tool | 252.4 MB: Node 24 only | 332.7 MB; 281.7 MB after also deleting the Node 24 archive |
- nvm removes the version but keeps the downloaded archive (20.7 MB for Node 20, 73.0 MB for the three).
nvm cache clearremoves them. The nextnvm installof that version downloads again. - fnm keeps no archive and cleans up fully. Removing the version that was the
defaultalso removed the alias (“Alias default was removed successfully”), so runfnm default 24.22.3afterwards or new shells will have no Node. - Volta has no command for it in 2.0.2. We deleted the folders and archives of 20 and 22 ourselves and
volta list allthen showed only Node 24, withtscandprettierstill working. Deleting the Node 24 archive as well left Node 24 andtsc -vworking, because the archive is only a download copy. Volta's globals live apart from the Node versions, so removing a Node version never removes a global package.
The cache nobody mentions
All three installs of <code>typescript</code> and <code>prettier</code> went through npm, which kept a 32 MB download cache in <code>~/.npm</code> that none of the three managers touches. <code>npm cache clean --force</code> empties it. That cache is the same whichever manager you use.
Other Node copies on the same Mac
| Install | MB (Cellar) |
|---|---|
Homebrew node 26.13.0 | 76.7 |
Homebrew node@22 22.23.4 | 57.4 |
Homebrew is a fourth place for Node. If you use a version manager and Homebrew's Node, you have at least two installs of the same line. Our <a href="https://zofle.com/articles/homebrew-mac-storage-cellar-caskroom-cache-cleanup">Homebrew storage article</a> covers the Cellar and the cache.
What to do on your Mac
- List what you have:
nvm ls,fnm listorvolta list all. - Keep the lines you build against (the ones in your
.nvmrc,.node-versionorpackage.jsonengines) and remove the rest. - Expect 150 to 250 MB back per version with nvm and fnm; the exact figure depends on the globals you installed into it.
- After nvm: run
nvm cache clear. After fnm: reset the default. With Volta: delete the folder undertools/image/node/and the matching archive undertools/inventory/node/. - Closely related: the language-version side of this for Ruby is in Ruby on a Mac, and the
node_modulesand Gradle caches are in Developer disk hogs.
Zofle lists these folders by size on disk in one place, so you can see the version folders next to your other caches, and it moves what you pick to the Trash with Undo.
Zofle shows Node version folders, package caches and other developer leftovers sorted by size on disk, and moves them to the Trash with Undo.
Download Zofle for MacSources and method
- Releases: nvm v0.40.3 (github.com/nvm-sh/nvm), fnm v1.39.0 (github.com/Schniz/fnm), Volta v2.0.2 (github.com/volta-cli/volta); Node 20.20.2, 22.23.5 and 24.22.3 from nodejs.org/dist/index.json, read 18 November 2026.
- Run on 18 November 2026 on one Apple M4 Mac mini, macOS 27.0.1, with
HOMEset to a scratch folder and each tool in its own folder; everything was deleted afterwards. Sizes aredu -sk; one machine, one run, so treat the third digit as noise. The reason for the 12 MB per-version difference was not investigated. Volta's “not supported yet” message is the one printed by 2.0.2 and may change.
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.