jekyll: command not found or gulp: command not found
- Cause
- The toolchain is not installed
- Fix
- Add the right config file (
Gemfilefor Ruby,package.jsonfor Node) in the base directory
Diagnose a failed Netlify build from the deploy log: exit status 128, command not found, peer dependency errors, Node version, case sensitivity and cache.
A failed Netlify build almost always comes from a difference between your machine and Netlify's build environment. Build locally first, then match package and Node.js versions, check the base directory, and read the deploy log for the exact message: exit status 128 means Netlify cannot clone the repo, and command not found means the toolchain config file is missing.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
jekyll: command not found or gulp: command not foundGemfile for Ruby, package.json for Node) in the base directoryCould not resolve dependency or Conflicting peer dependencyNPM_FLAGS to --force or --legacy-peer-depsexit status 128jQuery/jquery.js and jquery/jquery.js differgit mv or git rm, then re-addCI=true makes some libraries treat warnings as errorsCI='' npm run buildUncaught SyntaxError: Unexpected token in the browserNetlify builds with CI=true. Run your build command with it on so warnings-as-errors show up locally.
Delete node_modules and install from the lockfile, so you test what a fresh build environment gets.
Use the version you set for Netlify (next section). With the Netlify CLI, Netlify says a mismatch between your local Node.js and the one on Netlify can cause errors.
Imports that differ from file names only by case work on macOS and Windows and fail on Netlify's Linux build.
rm -rf node_modules
npm install
CI=true npm run build
echo "exit code: $?"git ls-files | sort -f | uniq -diBoth commands need your own repository. The second prints nothing when no two tracked paths collide once case is ignored, and prints the colliding names otherwise.
.node-version file and .nvmrc file all beat the UI setting.yarn.lock, pnpm-lock.yaml or bun.lockbnpm installpnpm-lock.yaml in the base directory, Node.js 16.9.0 or newerpnpm installyarn.lock, or a packageManager field naming Yarnyarnbun.lockb committed to the repobun install22Two details that cause real failures: Yarn Berry (2.0.0 and later) needs nodeLinker: node-modules in .yarnrc.yml because Plug'n'Play is not supported, and the packageManager field takes an exact version such as pnpm@6.3.2, not a semver range.
exit status 128, go to Project configuration, Developer settings, Continuous deployment, Repository, choose Manage repository, then Link to a different repository. Afterward check your Git provider for duplicate Netlify webhooks.To clear a stale build cache, redeploy the latest branch commit with Retry without cache. Cache scope depends on the deploy type, which explains why a branch deploy can behave differently from production.
If the build is not failing but the deployed site shows Page not found, Netlify points at the publish directory. Open Configuration, Developer settings, Build settings and confirm it. Retries after post-processing failures are exhausted after 4 attempts, at which point the guide says to contact support.
A failed build is not a response a crawler can see. What matters is what the domain serves afterward: a wrong publish directory yields 404s, and Google removes URLs already indexed that return 4xx. Once the build is fixed, request the key URLs and check status codes, and see Netlify function timeouts for the runtime side of the same platform.
3 questions people ask next, answered from the sources on this page.
Netlify does not have permission to clone the repository. It usually follows a change to org or repo settings after the site was linked. Relink the repository and check for duplicate webhooks.
The common differences are package versions, Node.js version, a case-sensitive Linux filesystem and the CI flag turning warnings into errors. Netlify names mismatched package versions as the leading cause.
Set a NODE_VERSION environment variable, or add a .nvmrc or .node-version file to the base directory. Either overrides the version chosen in the UI.
Run the free audit, then approve the fixes. Every change can be undone.