November 24, 2026
How to Keep Your Mac Dev Environment Clean After Framework Upgrades

Kausar

You’ve merged a Tailwind v4 upgrade and the build passes. Weeks later, you open an older project and realize you can’t remember which one still uses the global Tailwind CLI. The week you merge an upgrade is a good time to check what the new setup replaced and what your other projects still need.
Why do upgrades leave clutter behind?
Updating project dependencies leaves tools installed outside the project in place. One change in v4 is the move to CSS-first configuration. If you use the CLI, the Tailwind upgrade guide explains the move to the separate @tailwindcss/cli package.
Spring Boot 4.0 requires at least Java 17, per its system requirements. If you installed a newer JDK during the upgrade, the old one may still serve an older checkout or an IDE project.
How do you keep your Mac dev environment clean after an upgrade?
Start with the tools that affect your builds. Leave desktop apps until you’ve confirmed the upgraded project runs with the tools you intend to keep.
1. Clean up global Node packages
Run the listing command for the package manager you use. With nvm or fnm, switch to each installed Node version you use and check its npm globals. A package you installed under one version may be absent under another.
npm ls -g --depth=0
pnpm list -g
yarn global listThe Yarn command is for Yarn Classic (1.x). Check your pnpm version before drawing conclusions from its global list. pnpm 11 isolates global installs, and pnpm remove -g tailwindcss removes the entire install group containing that package.
Before removing an older CLI, run command -v tailwindcss and check the build scripts in projects that still use it. If they no longer need the npm global, use npm uninstall -g tailwindcss. For a Yarn Classic global, use yarn global remove tailwindcss. Keep the required CLI in each project’s development dependencies and run it through a package script so teammates and CI use the same version.
2. Tidy Homebrew and runtime versions
List manually installed Homebrew formulae that other installed packages don’t depend on, then list your casks. Preview both cleanup operations before you choose what to remove.
brew leaves --installed-on-request
brew list --cask
brew autoremove --dry-run
brew cleanup --dry-runRead the output before rerunning either cleanup command without --dry-run. If you find an obsolete package you installed yourself, use brew uninstall <name> for a formula or brew uninstall --cask <name> for a cask. Homebrew command reference
For Java, /usr/libexec/java_home -V lists JDKs macOS can discover. Check SDKMAN! or mise separately if you installed Java through one of them. If the retained JDK works in your shell but the IDE still points to the old bundle, update the IDE before you uninstall it. Look at the project’s Maven or Gradle toolchain and the IDE’s selected JDK, then run the build with the version you plan to keep.
Use the original installation method to remove an unused JDK. For example, a Homebrew Temurin 11 install uses brew uninstall --cask temurin@11, while the OpenJDK 11 formula uses brew uninstall openjdk@11. For a manual installation, identify the exact bundle and follow the JDK vendor’s macOS uninstall instructions. Before removing an old Node version, check .nvmrc or .node-version in your other projects as well.
3. Remove old project leftovers
Check the project’s build configuration before touching .next, dist, .astro, Maven’s target or Gradle’s build. Delete a directory only after confirming it contains reproducible build output or generated metadata. A name like dist tells you little about a particular repository. Check Git and leave any tracked files or hand-edited assets in place. Use the project’s clean task where available. For example, if an old Next.js checkout uses the default output directory, remove its generated .next directory and rebuild from the checkout root. If the team configured a different output directory, use that path. Open the rebuilt app and try one route you touched during the upgrade to catch problems a successful compile can miss.
If the Tailwind v4 migration still needs work, run npx @tailwindcss/upgrade on a branch with Node.js 20 or later. Keep tailwind.config.js while a stylesheet still loads it through @config. Remove autoprefixer or postcss-import only after checking that no other pipeline uses them, then run the build again.
4. Remove the dev apps you no longer use
Quit the old editor or API client and export any settings or workspaces you’ll need. On macOS Sequoia and earlier, you can delete eligible App Store apps from Launchpad. macOS Tahoe 26 puts app browsing in Spotlight. To uninstall on Tahoe, locate the app in Finder’s Applications folder. Use the vendor’s uninstaller if it provides one. Otherwise, move the app to the Trash. Apple’s uninstall instructions
If Homebrew installed the app as a cask, use the cask uninstall command. Leave its support data in place until you know you no longer need it.
Run this after every major upgrade
After the next framework upgrade, save a short note in the pull request about what the project stopped using and which older checkout, if any, still needs it. That gives you a record to check before uninstalling a tool months later.