Mintlify requires Node.js v18 or v20 (LTS versions). Node.js v25+ is not supported and will cause errors.
-
Navigate to the project directory:
cd /Users/prometheus/Documents/Morpheus/api-gateway-docs -
Use Node.js v20 (reads from .nvmrc automatically):
nvm use
-
Start the Mintlify dev server:
npx mintlify@latest dev
cd /Users/prometheus/Documents/Morpheus/api-gateway-docs && nvm use && npx mintlify@latest dev- ✅ Created
.nvmrcfile with Node v20.18.3 - ✅ Uninstalled incompatible global
mintpackage - ✅ Set up Node v20 as an available version in nvm
- Your system has Node.js v25.2.1 installed via Homebrew
- Mintlify doesn't support Node v25+ yet
- The globally installed
mintcommand was linked to the system Node version - Using
npxwithnvm useensures the correct Node version is used
Solution: Make sure you run nvm use first:
nvm use
npx mintlify@latest devSolution: Install nvm first:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashThen restart your terminal and install Node v20:
nvm install 20.18.3-
Check your current Node version:
node --version
Should show
v20.18.3after runningnvm use -
Verify nvm is working:
nvm current
Should show
v20.18.3 -
Start fresh in a new terminal:
- Open a new terminal window
- Navigate to project directory
- Run
nvm use && npx mintlify@latest dev
Once the dev server starts successfully, you'll see:
✓ Mintlify is running on http://localhost:3000
Open your browser to view your documentation site with all the GEO optimizations!
For production, Mintlify's hosted service automatically uses the correct Node version. The .nvmrc file ensures compatibility if you're deploying elsewhere.
If you're still experiencing issues, contact:
- Mintlify Support: https://mintlify.com/docs
- Or check their Discord community