How to uninstall Node.js on a Mac

March 18, 2025
Asya Karapetyan
Written by
Asya Karapetyan
info
A content marketer with 10+ years of experience specializing in macOS, focused on creating guides for Mac cleanup and optimization.
A content marketer with 10+ years of experience specializing in macOS, focused on creating guides for Mac cleanup and optimization.
Vladimir Nuzhdin
Approved by
Vladimir Nuzhdin
info
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.

The way to install node.js on a Mac is different than the regular method for installing applications on the system. Therefore, when it comes to uninstalling it, most users are confused. That’s why we’ve prepared a guide explaining how to uninstall Node on a Mac.

Contents:

  1. What is Node.js?
  2. Where is Node installed on your Mac?
  3. How to check what version of Node you have
  4. How to uninstall Node.js from a Mac
  5. How to remove applications’ leftovers from a Mac
  6. FAQs

Before we start

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 app has left on your Mac and helps you uninstall the programs completely.
“App

App Cleaner & Uninstaller

Free Download


Video Guide: Deleting Node on a Mac


What is Node.js?

Node.js is a tool that helps computers run JavaScript outside of a web browser. With Node.js, developers can use JavaScript just like other programming languages, for example, to build apps, create servers, and manage data.

To understand, think of it like this:
If JavaScript is a car that usually drives on highways (web browsers), Node.js is a special upgrade that lets it drive off-road (on computers and servers).

The way to remove Node.js depends on the way you used to install it on your Mac. Below we’ll provide step-by-step guides for each way.


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, the software’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 for uninstalling Node on your Mac again depend on how you installed it. You can remove it 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 Terminal from Launchpad or the Applications folder.
  2. Type the following command in its window and press Return:
    brew uninstall –force node
  3. The system will remove the software and all of its support files.
Terminal window showing the command to uninstall Node.js

How to uninstall Node installed using NVM

NVM is an abbreviation of Node Package Manager. If you installed the app with NVM follow these steps to remove the app:

  1. Launch Terminal.
  2. Type the following command and press Return.
    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.

How to uninstall Node from Finder

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 Return.
  4. 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 the app may have more or less support files depending on the version you have.

  7. Once you remove all of Node’s files, empty your Trash.
  8. Restart your Mac.

Node.js will be completely uninstalled from your Mac.


How to remove applications’ leftovers from a Mac

Just like Node, every application creates support files to ensure its proper performance. To completely uninstall any application from a 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.

To easily find support files left after dragging apps into the Trash use App Cleaner & Uninstaller. It is a software that helps you uninstall applications from your Mac completely and safely with a few clicks, as well as find the leftovers of previously deleted apps:

  1. Launch App Cleaner & Uninstaller.
  2. Click Remaining Files in its sidebar.
  3. Select leftover files in the left panel.
  4. Click the Remove button.
  5. Click again Remove to confirm.
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 apps. This article provided a detailed guide to do this. If you still have questions, let us know in the comments section below.


FAQs

How to check if Node.js is entirely uninstalled from a Mac?

Should I use NPM or NVM to install Node.js?

Does uninstalling Node.js remove NPM?



Leave a Comment

Your email address will not be published. Required fields are marked *