What is node on Mac? Node.js processes explained

Safe to quit? SometimesMade by Node.js project (OpenJS Foundation)node

A node process on your Mac is a Node.js program: a dev server, a build tool or an app's helper. How to find what it is, and why it uses high CPU.

Updated 16 November 2026 · 4 min read

A process called node on your Mac is the Node.js runtime running a JavaScript program, such as a local web server, a build tool or a command-line app. Node.js comes from the open-source Node.js project, it is not a virus, and having several node processes at once is normal on any Mac used for web development.

What matters is which program each one is running. That takes one command to find out.

What node is

The Node.js site's introduction describes Node.js as an open-source, cross-platform JavaScript runtime environment that runs the V8 engine, the same engine at the heart of Google Chrome, outside the browser. Each Node.js app runs in a single process.

So node is not one program but a host for many. Typical examples on a Mac:

  • Dev servers for frameworks such as Vite or Next.js, started with npm run dev.
  • Build tools and test runners, which run for a while and then exit.
  • Command-line tools installed with npm.
  • Helpers inside other tools, such as language servers or scripts started by an editor.

On the Mac we checked there were 14 node processes, most of them idle and one running a build script.

Is node a virus?

Node.js is not, but any program can be run with it, so check what each process is running.

To list node processes with their full command lines, use Terminal. This only reads:

ps -Ao pid,%cpu,rss,command | grep -w node | grep -v grep

The command column shows the script, for example node scripts/build.js or a path inside a project's node_modules. To see which folder a process was started in, replace 12345 with its PID:

lsof -a -p 12345 -d cwd

Then check which Node.js binary it is and how it is signed:

which -a node
codesign -dvv "$(which node)" 2>&1 | grep -E "Identifier|Signature|Authority|TeamIdentifier"

On the Mac we checked, node came from Homebrew at /opt/homebrew/bin/node and showed Signature=adhoc and TeamIdentifier=not set. That is normal for software built by Homebrew, which signs locally rather than with a developer certificate. A copy from the official installer on nodejs.org is normally signed with a Developer ID certificate, which shows in the Authority lines.

Be suspicious of a node process you cannot explain that runs a script from a hidden or temporary folder, or that starts at every login. The guide to checking a Mac for malware shows how to check startup items.

Why node uses high CPU or memory

  • A build or bundle step, which is meant to use a lot of CPU for a short time.
  • A dev server watching files. Saving a file triggers a rebuild, and watching a very large folder costs CPU.
  • A stuck loop in the script, which pins one node at around 100% of a core.
  • Memory growth in a long-running process, such as a dev server left open for days.
  • Several projects left running in forgotten terminal tabs.

What is normal

A burst of high CPU during builds, tests or installs is normal. Idle dev servers usually sit near zero. One node at constant high CPU while you are not changing anything is the one to look at.

How to fix high node CPU

  1. Identify it with the ps and lsof commands above.
  2. Stop it where it started. Go to the terminal tab running it and press Control-C. That lets the program shut down cleanly.
  3. Quit it from Activity Monitor if you cannot find the terminal. Select it and click the Stop button. Unsaved state in that program is lost.
  4. Restart the dev server if it has been running for days and memory keeps climbing.
  5. Narrow what it watches. Check the tool's configuration for watch or ignore options so it does not scan folders it does not need.
  6. Keep Spotlight out of build folders. Spotlight indexing node_modules adds load on top; see mds_stores.
  7. Update Node.js and the tool, since performance fixes are common.

What not to do

  • Do not delete Node.js files by hand to stop a process. Use the tool that installed it, such as Homebrew or the official installer, to update or remove it.
  • Do not delete a project's node_modules while its server is running. Stop the server first. The guide to deleting node_modules safely explains when it is safe.
  • Do not change system folders. Node.js is not part of macOS, so nothing in /System is involved.

How to see node in Activity Monitor

  1. Open Activity Monitor from Applications > Utilities.
  2. Type node in the search field.
  3. Sort by % CPU on the CPU tab, or by Memory on the Memory tab.
  4. Choose View > All Processes, Hierarchically to see which terminal or app started each one.
  5. Double-click a node process; Open Files and Ports shows the files it has open, often including the project folder.

If you run containers too, see com.docker.backend.

How Headroom helps

A node started from Terminal is not inside an app, so Headroom's Speed screen does not list it; Activity Monitor or the commands above are the way to find it. Speed does show live CPU and memory pressure for the whole Mac, which tells you whether that dev server is hurting. Headroom's free Clean scan also finds old build folders such as node_modules in projects you have not touched for a while; clearing them needs the $19 licence.

Download Headroom, read about the Mac cleaner, or see the price.

Questions

What is the node process on my Mac?

It is the Node.js runtime running a JavaScript program outside a browser. Developer tools, local web servers, command-line tools and some apps use it, so several node processes at once is common.

Is node a virus?

Node.js itself is not. A node process is only as trustworthy as the script it runs, so check its full command line and working folder to see what it is doing.

Why is node using 100% CPU?

The script it runs is busy: a build, a dev server rebuilding after changes, a file watcher scanning a huge folder, or code stuck in a loop. The command line tells you which project it belongs to.

Is it safe to quit node?

Usually, but it stops whatever that program was doing, such as a dev server or a build. Stop it from the terminal where it runs with Control-C when you can.