Where Does Nim Store Toolchains and Packages?
Nim choosenim toolchains plus Nimble packages on Windows, macOS and Linux.
Last updated
Nim versions live under choosenim toolchains in home, while Nimble packages sit in ~/.nimble per user. Project .nimble files pin deps.
Caches rebuild from source. Moving machines means copying configs plus project files; toolchains reinstall through choosenim. Check nimble path for live dirs when unsure.
Where Nim stores this, by platform
%USERPROFILE%\.choosenim\toolchains\
Versioned compilers here. Packages default to %USERPROFILE%\.nimble\pkgs2. Run nimble path to confirm; exact roots may vary by installer.
~/.choosenim/toolchains/
Same choosenim layout. Nimble pkgs under ~/.nimble. Keep project .nimble files in git; toolchains reinstall on demand.
~/.choosenim/toolchains/
Same arrangement. Distro packages sometimes split paths, so prefer choosenim installs for consistency. Exclude build artifacts from backups.
Frequently asked questions
Where are Nimble packages stored?
Under ~/.nimble (pkgs2) by default, shown by nimble path. Delete and reinstall to fix broken deps; project .nimble files drive versions.
How do I move Nim to a new machine?
Install choosenim fresh, then copy projects plus nimble config. Toolchains download per version. Keep custom switch flags in choosenim config.
Notice an outdated path? Let us know.