1. Identify the Node.js your shell uses
Run these checks in Terminal before removing anything. type -a reports matching commands, including aliases or functions; command -v reports how this shell resolves node. A path is a clue to the installer, not proof of ownership. Neither command searches your whole disk, other user accounts or every version stored by a manager.
/opt/homebrew/bin/node commonly belongs to Homebrew on Apple silicon. /usr/local/bin/node can come from Homebrew or a package installer. A path inside .nvm suggests nvm; .volta/bin/node is normally a Volta shim that selects another executable. Confirm with the matching manager below. If the output reports an alias or function, inspect its definition before assuming it names a file.
If you inspect a path with ls -l, copy that one path and put it in double quotes. Do not pass a whole command listing into ls: aliases, missing results and paths containing spaces can produce misleading output. A missing command only means this shell cannot resolve it.
type -a node npm
command -v node
command -v npm2. Record tools and project requirements
Before uninstalling, stop development servers you started and save your work. Check the Node version required by your projects, including .nvmrc, .node-version or package.json. Removing a runtime can stop those projects and command-line tools from running. Keep your source files, lockfiles and local data.
When npm still works, the commands below show its global package directory, top-level packages and configured cache location. Copy the results into a new private note. If npm reports missing or invalid packages, keep the error with the list; a failed command is not evidence that no packages are installed.
Global packages can live in a shared prefix or inside one managed version. Record each environment you intend to remove; for Volta-managed tools, also use volta list. Removing Node does not reliably remove all global packages. The npm cache is separate and may use a custom location. Never delete a shared node_modules directory just because one Node version is leaving.
npm root -g
npm ls -g --depth=0
npm config get cache3. Homebrew: remove the installed formula
Use this section only if Homebrew manages the installation. Run brew list --formula --versions and look for node or a versioned formula such as node@22. If brew is not found, skip this method; do not install another manager merely to remove Node.
For an installed formula named node, inspect its installed dependants with brew uses --installed node, then run brew uninstall node only if you no longer need that runtime. Substitute the exact formula name for a versioned installation. If Homebrew refuses because another formula needs it, stop and review that dependency. Do not bypass the refusal with --ignore-dependencies or delete files from its Cellar manually.
Afterwards, repeat the formula listing and the shell checks. Leave shared global npm packages in place until you identify which tools still use them. A second Homebrew installation, for example under a different prefix, needs its own inventory.
brew list --formula --versionsnvm or fnm: choose one exact installed version
For nvm, run nvm ls and note the full version you want to remove. If it is active, switch to a version you are keeping or run nvm deactivate. Then use nvm uninstall followed by that exact version. For example, nvm uninstall 22.0.0 removes 22.0.0 only if that is the version you chose. Save its global tool list first, and check project and default aliases afterwards.
For fnm, run fnm list, switch away from the version you are removing, then run fnm uninstall followed by its full version. Avoid using an alias as the removal target: fnm documents that it removes the version the alias points to and other aliases pointing to that version.
Run only the commands for your manager. Removing one runtime does not require deleting the manager. Leave its startup lines and installation directory intact while you still use other versions; custom NVM_DIR or FNM_DIR settings can place those files outside the usual folders.
Volta: distinguish a tool from the whole manager
Use volta list to inspect the toolchain and volta which node to identify the selected executable behind the shim. Volta documents volta uninstall for global packages installed with volta install; do not assume it behaves like nvm uninstall for a specific Node release.
Volta’s full Unix removal instructions delete its entire home directory and remove its shell-profile entries. That affects the manager and the tools stored there, not just the Node version you currently see. If you want to remove Volta altogether, record those tools first, check whether VOLTA_HOME is customized, and follow the linked official removal instructions. If you only need another Node version, use Volta’s toolchain controls instead of deleting its directory.
volta list
volta which node4. Package installer: inspect receipts before touching files
For a Node.js .pkg installation, start with the receipt inventory below. The grep filter returns no lines when it finds no matching ID; that is not proof that Node is absent. Receipt IDs can vary. For an ID that actually appears, use pkgutil --pkg-info followed by that ID to see installation details, then pkgutil --only-files --files followed by the same ID to list recorded files.
For example, if org.nodejs.node.pkg appears, inspect it with pkgutil --pkg-info org.nodejs.node.pkg and pkgutil --only-files --files org.nodejs.node.pkg. Interpret the listed paths using the receipt’s volume and install location. A receipt records a past installation: it does not prove that a current file has not since been replaced by Homebrew or another installer.
Do not delete /usr/local, /usr/local/bin or /usr/local/lib/node_modules as a batch. These locations may contain unrelated executables or global tools you still use. Do not pipe a receipt listing into rm. Inspect each candidate’s current path and symlink target, compare it with your manager inventory, and back up anything you intend to remove. If ownership is unclear, leave it in place and get help identifying it.
Only after that review, use Finder’s Go → Go to Folder to open the specific parent folder and move the confirmed obsolete item to Trash. Recheck your remaining tools before emptying Trash. Permission errors are a reason to stop, not to loosen permissions recursively. pkgutil --forget only discards a receipt; it does not uninstall the files and is not required to make another Node installation work.
pkgutil --pkgs | grep -i nodejs5. Verify the intended version, then reinstall if needed
Open a fresh Terminal window and repeat type -a node npm and command -v node. A remaining path may be an installation you intentionally kept. “Not found” means this shell has no matching command; inactive manager versions or app-bundled runtimes can still exist elsewhere. Recheck the manager’s own inventory too.
If reinstalling, choose the version your projects support and follow that manager’s instructions or the official Node.js download page. Keeping one primary installation method makes PATH easier to understand, though multiple methods can coexist deliberately. Once installed, run node -v and npm -v and check their paths before restoring the global tools you need.
Keep .npmrc private: it can contain registry credentials. Do not paste it into public issues or screenshots. Edit shell startup files only for a manager you have actually removed, and keep a backup of those files. If storage is still the problem, inspect project dependencies and the npm cache separately using the related guides; reinstalling Node does not remove every development file.
type -a node npm
command -v nodeCommon questions
How do I identify which installer manages Node.js on my Mac?
Use type -a node and command -v node to inspect the current shell, then confirm with Homebrew or your version manager. A path or old package receipt alone does not prove who owns the current file.
Can I remove Node.js by deleting /usr/local/lib/node_modules?
That directory can contain shared global tools. Removing it can break packages beyond the Node version you intended to uninstall. Identify the installer and inspect individual packages before removing anything.
Why does node still work after an uninstall?
Another installation, a manager shim or a shell alias may still resolve the command. Check a fresh Terminal window and the manager inventory. A shell lookup is not a scan of every Node installation on the disk.
Will uninstalling Node.js delete my global npm packages?
It depends on where the packages live and how Node was installed. Packages inside a removed version directory may go with it; a shared global prefix may remain. Record npm root -g and npm ls -g --depth=0 before removing the runtime.
References & further reading
These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.