Fixing the 'make is not recognized' Error on Windows 10 and 11

beginner🪟 Windows2026-06-10| Windows 10, Windows 11, MinGW-w64, MSYS2, VS Code Terminal, PowerShell 7

Error Message

'make' is not recognized as an internal or external command, operable program or batch file.
#make#mingw#cpp#windows-10#windows-11#programming

Why This Error Pops Up

Windows is not a Unix-based system. Unlike Linux or macOS, it doesn't include the make utility by default. Even if you've installed a compiler like GCC, the make tool is often missing or hidden under a different filename like mingw32-make.exe. If your terminal can't find the executable in your System PATH, it simply gives up and throws this error.

Method 1: The Fastest Fix (Using Chocolatey)

If you use the Chocolatey package manager, you can resolve this in seconds. It handles the download and the PATH configuration for you automatically.

Open your terminal as Administrator and run:

choco install make

The installation is tiny—usually around 2.1 MB. Once the process finishes, restart your terminal. Type make -v to confirm it works.

Method 2: Using MinGW-w64

Most C++ developers on Windows use the MinGW-w64 toolchain. If you already have it, you likely have the tool already; it's just named differently to avoid conflicts.

Step 1: Find your bin folder

Navigate to your installation directory. Depending on how you installed it, the path usually looks like one of these:

  • C:\msys64\mingw64\bin (Most common for MSYS2 users)
  • C:\MinGW\bin
  • C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin

Step 2: Create a 'make' alias

Inside that bin folder, you will find a file named mingw32-make.exe. This is the standard GNU Make tool, but renamed for the Windows environment. To use the shorter make command, simply copy mingw32-make.exe and paste it in the same folder. Rename that copy to make.exe.

Method 3: Updating Your System PATH

If you have the file but the terminal still doesn't recognize the command, Windows doesn't know where the folder lives. You need to point the way manually.

  • Tap the Windows Key and type "env". Select "Edit the system environment variables".
  • In the window that appears, click the Environment Variables button.
  • Look under System variables for a row named Path. Select it and click Edit.
  • Click New and paste the full path to your bin folder (e.g., C:\msys64\mingw64\bin).
  • Click OK on all three windows to save your changes.

Verifying the Results

Don't skip this: you must restart your terminal. Environment variables are loaded when a process starts, so your current CMD or PowerShell window won't see the changes yet.

Run this command to check your work:

make --version

You should see a response similar to this:

GNU Make 4.4.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2023 Free Software Foundation, Inc.

Troubleshooting Common Hang-ups

VS Code terminal still fails

VS Code is notorious for caching environment settings. If the command works in a standard Command Prompt but fails in VS Code, close every single VS Code window and relaunch the application. This forces the integrated terminal to refresh its environment tree.

Conflicting versions

Sometimes tools like Git Bash or Strawberry Perl include their own version of make. Run where make in your terminal. This command lists every location where Windows finds a "make" executable. If the wrong one is being used, go back to your Environment Variables and move your preferred path to the very top of the list.

Permission errors

If you get an "Access Denied" error when trying to rename mingw32-make.exe, ensure you are performing the action as a Windows Administrator. Some folders inside C:\Program Files are protected against standard user changes.

Related Error Notes