SetupInstall Node.js & npm

Install Node.js & npm: Required for MCP Setup

Node.js 18 or higher is required on the machine running your AI client. Learn how to install it on Windows, macOS, and Linux in three steps.

Node.js 18 or higher must be installed on the machine where you run your AI client. It does not need to be on your WordPress server. SproutOS uses npx to download and run the MCP connector that links your AI client to your site. Without Node.js, that command will fail. This guide gets you set up in three steps.

Step 1: Check if Node.js is already installed

Open a terminal and run:

node --version
npm --version

If both commands return version numbers, Node.js is already installed. If Node.js is version 18 or higher, skip to the Quick Start. If the commands return an error or an older version, continue to Step 2.

Step 2: Install Node.js & npm

Download the official installer from the Node.js website. It installs both Node.js and npm in one step.

Download Node.js (LTS)

Choose the LTS version. LTS stands for Long-Term Support. It is the stable release recommended for most users. After the installer finishes, restart your terminal before continuing.

Step 3: Verify the installation

Open a new terminal window and run:

node --version
npm --version

You should see version numbers similar to these:

v20.11.0
10.2.4

Node.js must be version 18 or higher. If the version is lower, re-run the installer and select the LTS version.

If the commands still return "not found" after installing, close all terminal windows and open a fresh one. The installer updates your system PATH, and the old terminal session may not reflect that change.

Frequently Asked Questions

Next Steps