Skip to content
>_VibeUnstuck

Error loading plugin - spawn git ENOENT

Last verified:

The fix

Error loading plugin - spawn git ENOENT: Cursor cannot find git while it loads a plugin. Install Git, run git --version, quit Cursor fully, and reopen. spawn npx ENOENT is an MCP server, not this.

  1. 1

    Confirm the line names git

    Error loading plugin - spawn git ENOENT or Error loading plugin: spawn git ENOENT means stay here. spawn npx ENOENT or spawn node ENOENT is an MCP server. Do not edit .cursor/mcp.json for the git line.

  2. 2

    See whether a terminal can run git

    If git --version fails, install Git and open a new terminal. On Windows, git has to work in PowerShell or Command Prompt, not only inside Git Bash. Cursor cannot spawn a git that exists only in Git Bash. On a Remote SSH window, install git on the remote host, not only on your laptop.

    git --version
    # macOS or Linux
    which git
    # Windows
    where.exe git
  3. 3

    If the terminal works and Cursor does not, relaunch from that terminal

    The Dock or Start-menu launch never loaded the PATH that terminal is using. Homebrew's git, often /opt/homebrew/bin/git or /usr/local/bin/git, is a common case on macOS. Quit Cursor completely. On macOS that is Cmd+Q, not closing the window. On Windows, quit the tray icon too. From the terminal where git --version worked, start Cursor with cursor so the process inherits that PATH.

  4. 4

    Load the plugin again

    The plugin row should no longer say Error loading plugin. If it still says spawn git ENOENT, the process you are looking at is not the one you just started from the terminal, or git is still missing on the Remote SSH host. Do not point an MCP server at git to get past this.

Why it happens

Cursor fetches some plugins, including a skill from a team marketplace, by running git. The line is Error loading plugin - spawn git ENOENT, sometimes pasted with a colon. ENOENT is Node reporting that the program name was not on the PATH of the Cursor process. Git is not installed, or it is installed only where your shell can see it.

A window opened from the Dock, the Start menu, or a desktop launcher does not source .zprofile, .bashrc, or an nvm-style path edit. git --version can succeed in a terminal while Cursor still cannot spawn git. This is not an MCP server. spawn npx ENOENT and spawn node ENOENT are that other miss, and the config for them is .cursor/mcp.json. VS Code fails the same way when its process cannot see git. The Cursor sentence on this page is the plugin loader.

The next error you'll probably hit

Once this is fixed, the usual follow-up is spawn npx ENOENT. spawn npx ENOENT: Cursor cannot find npx when it starts an MCP server. spawn node ENOENT is the same miss for node. Point command at the node binary. Error loading plugin - spawn git ENOENT is git, not this.

Prompt to paste back into your AI tool

Paste this above the error.

Cursor shows: Error loading plugin - spawn git ENOENT
(The same line is sometimes pasted as Error loading plugin: spawn git ENOENT.)

Do not edit .cursor/mcp.json. Do not invent a settings click-path. Do not say it is fixed unless git --version works in a terminal and the plugin line is gone after a full quit and reopen.

1. If the line is spawn npx ENOENT or spawn node ENOENT, stop. That is an MCP server, not git.
2. Tell me to run git --version. If it fails, tell me to install Git so the command works in a normal terminal. On Windows that means PowerShell or Command Prompt, not only Git Bash. On Remote SSH, git has to be on that host.
3. If the terminal can run git, tell me to quit Cursor completely (Cmd+Q, and the Windows tray) and start it from that terminal with cursor, so it inherits the PATH.
4. Do not change project files.

Common questions

+git --version works, and Cursor still says spawn git ENOENT. Why?

The terminal loaded a PATH the GUI launch did not. Homebrew and version managers usually edit the shell profile only. Quit Cursor fully, then start it from that terminal with cursor so it inherits the PATH. On Remote SSH, git has to be installed on the remote host.

+Is this the same as spawn npx ENOENT?

No. spawn npx ENOENT and spawn node ENOENT mean an MCP server command is missing. Those use .cursor/mcp.json. Error loading plugin - spawn git ENOENT means the plugin loader cannot find git. Leave mcp.json alone.

+Does a VS Code window hit this too?

A VS Code or Cursor window opened from the Dock or Start menu can fail to see a git that only exists on the shell PATH. The sentence Error loading plugin - spawn git ENOENT is the Cursor plugin loader. The fix is the same: git on the PATH that process actually gets, then a full quit and reopen.

Related errors