How to uninstall Node.js on a Mac

Asya Karapetyan
Content marketer, who specializes in Mac how-to guides
October 9, 2023
7 minutes to read

Node.js is an open-source runtime environment used by developers to create networked programs and web servers. The way to install Node.js on a Mac is differently than the regular method for installing applications on the system. Therefore, when you need to uninstall Node.js, you might be confused. That’s why we’ve prepared a step-by-step guide explaining how to uninstall Node on a Mac.

Removing Node on Mac


  1. Where is Node installed on your Mac?
  2. How to check what version of Node you have
  3. How to uninstall Node.js from a Mac
  4. How to quickly uninstall apps from a Mac

The quickest way to uninstall any application on a Mac

If you want to uninstall applications completely (including all their support files) from your Mac, it is not enough to just drag and drop their icons into the Trash bin. That would leave the support files still on your disk.
You can find those leftover files manually; however, you can also use a special utility called App Cleaner & Uninstaller from Nektony, which automatically finds all the service files each application has left on your Mac and helps you uninstall the programs completely without leaving a single file behind. You can try the application for free.

App Cleaner & Uninstaller

Free Download

Where is Node installed on your Mac?

To uncover where Node.js is installed on a Mac, first, you should try to remember how you installed it. Depending on that, Node’s files can be stored in different locations on your Mac.
If you downloaded the installer file from the official website, you should look for the software support files in the following locations:

  • /usr/local/bin
  • /usr/local/lib
  • /usr/local/include
  • /usr/local/lib/dtrace
  • /usr/local/share/doc
  • /usr/local/share/man/man1
  • /usr/local/systemtap/tapset
Finder showing Node files
If you used NVM to install Node, you could find its support files in the .nvm hidden folder within your Home folder.

How to check what version of Node you have

You will need the Terminal command line to check the version of Node you have on your Mac. Follow these steps:

  1. Open the Terminal from Launchpad or the Applications folder.
  2. Copy and paste the following commands into the Terminal window:
    • node -v
    • npm -v
  3. You will then see which Node version is installed on your system.
Terminal window showing the command to check the Node version

How to uninstall Node.js from a Mac

The steps to remove Node.js from your Mac again depend on how you installed it. You can also delete Node.js on Mac using the Terminal command line or manually find and remove its files from your computer.

Here’s how to uninstall Node on Mac that was installed using Homebrew

  1. Open Terminal from Launchpad or the Applications folder.
  2. Run the following command in Terminal:
  3. brew uninstall –force node

  4. The system will remove Node and all of its support files.
Terminal window showing the command to uninstall Node.js

How to uninstall Node installed using NVM

  1. Launch Terminal.
  2. Type the following command and press Enter (Return).
  3. nvm uninstall v.16.15.0

Terminal window showing the command to uninstall Node from your Mac

Note: You need to type the Node version number used on your Mac. Above, you can find the guide on how to check the version.

Uninstalling Node.js from your Mac manually

For this method, you will need to manually find and remove all files associated with Node. Here is how:

  1. Open Finder.
  2. Press the Cmd+Shift+G shortcut.
  3. In the search field, type /usr/local/lib and press Enter.
  4. Finder will show this location. Find the files or folder with Node in their names and move them into the Trash.
  5. Go also to the locations listed below and remove all node and node_modules from there:
    • /usr/local/include/node
    • /usr/local/include/node_modules
    • /usr/local/lib/node
    • /usr/local/lib/node_modules
    • /usr/local/bin/node
    • /usr/local/bin/node_modules
    • /usr/local/bin/node-gyp
    • /usr/local/share/man/man1/npm
    • /usr/local/lib/dtrace/node.d
    • /opt/local/bin/ node
    • /opt/local/include/node
    • /opt/local/lib/node_modules
    • /usr/local/share/doc/node
    • /usr/local/share/systemtap/tapset/node.stp
    Finder showing Node support files
  6. Remove the following files from the Home directory:
    • .npmrc
    • .npm
    • .node-gyp
    • .node_repl_history

Note that Node may have more or less support files depending on the software version you have.
Once you remove all of Node’s files, empty your Trash and restart your system. Node.js will be completely uninstalled from your Mac.

How to quickly uninstall apps from a Mac

Just like Node, every application creates support files to ensure its proper performance. To completely uninstall any application from Mac, you also have to remove all of its temporary files. By default, they should be stored in the Library folder. However, applications sometimes spread their files all over your disk.
That’s why we’re introducing App Cleaner & Uninstaller. It is software that helps you uninstall applications from your Mac completely and safely with a few clicks. Here’s how to uninstall Node using App Cleaner & Uninstaller:

  1. Download and launch App Cleaner & Uninstaller.
  2. Select the programs you want to remove.
  3. Click the Uninstall button and confirm the action.
Uninstalling apps from Mac

App Cleaner & Uninstaller will remove the program entirely, including all of its support files. If you wish to see these service files before removing the app, switch to Expert mode.
Additionally, App Cleaner & Uninstaller finds the leftovers of previously removed apps. To do this, switch to the Remaining Files section, where you will find support files of already uninstalled apps. App Cleaner & Uninstaller showing remaining files
We recommend checking your system for unused software programs and useless service files left behind by removed apps so that you can free up space on your disk and optimize your Mac’s performance.


Uninstalling Node.js from a Mac involves a different process than the steps for removing sandboxed applications. This article provided two ways to do this. We also want to remind you that you can use App Cleaner & Uninstaller to wholly and quickly uninstall 1,500+ apps on macOS. You can download a free trial using the button below.

Scroll to Top