A CI-only Node failure often means GitHub Actions is using a different Node version than local development. Pin the version with actions/setup-node and align it with package.json engines.
Platform: GitHub Actions
Error: Node version mismatch
A CI-only Node failure often means GitHub Actions is using a different Node version than local development. Pin the version with actions/setup-node and align it with package.json engines.
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
Do not rely on the runner default Node version. Defaults change and can break old workflows.
Send the deploy log, repository link, target platform, and expected URL. ShipFast Deploy Rescue is a fixed-price debugging service for indie projects and MVPs.