Asya Karapetyan
Content marketer, who specializes in Mac how-to guides
December 13, 2022
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 it comes to uninstalling node.js, most users are confused. That’s why we’ve prepared a 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 any app from a Mac

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 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 installed on your Mac. Follow these steps:

  1. Run 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 Mac.
Terminal window showing the command to check the Node version

How to uninstall Node.js from a Mac

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

How to uninstall Node that was installed using Homebrew

  1. Open the Terminal app.
  2. Type the following command and press Enter (Return):
  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 the Terminal app.
  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 Mac

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

How to manually uninstall Node from a Mac

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 Mac. Node.js will be completely uninstalled from your Mac.

How to quickly uninstall any app 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, apps 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. Just follow these steps:

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

App Cleaner & Uninstaller will remove the app 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 Mac for unused apps 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 apps. 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 from your Mac. You can download a free trial using the button below.

App Cleaner & Uninstaller icon

App Cleaner & Uninstaller

Uninstall any Mac application in 2 minutes

Supported systems: macOS 10.11-10.15
Update v. 7.0 Sep 2022
Scroll to Top