PLEASE help us help you by writing a good post!
- we need to know your netlify site name. Example:
gifted-antelope-58b104.netlify.app
- DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
- Build problems? Link or paste the FULL build log & build settings screenshot
The better the post - the faster the answer.
Build settings
Runtime
Gatsby
Base directory
/
Package directory
Not set
Build command
gatsby build
Publish directory
public
Functions directory
netlify/functions
Build status
Active
Node.js
18.x
Blockquote
7:12:51 PM: build-image version: 7642deb181638b3835e1167f6d37cbbbfd478984 (focal)
7:12:51 PM: buildbot version: 7642deb181638b3835e1167f6d37cbbbfd478984
7:12:51 PM: Building without cache
7:12:51 PM: Starting to prepare the repo for build
7:12:52 PM: No cached dependencies found. Cloning fresh repo
7:12:52 PM: git clone --filter=blob:none https://github.com/MH-Mangelian/gatsby-starter-netlify-tailwind
7:12:52 PM: Preparing Git Reference refs/heads/main
7:12:54 PM: Custom build command detected. Proceeding with the specified command: “npm run build”
7:12:54 PM: Starting to install dependencies
7:12:54 PM: Python version set to 3.8
7:12:54 PM: Attempting Ruby version 2.7.2, read from environment
7:12:55 PM: Using Ruby version 2.7.2
7:12:55 PM: Started restoring cached go cache
7:12:55 PM: Finished restoring cached go cache
7:12:55 PM: go version go1.19.13 linux/amd64
7:12:56 PM: Using PHP version 8.0
7:12:56 PM: Attempting Node.js version “lts/gallium” from .nvmrc
7:12:56 PM: Downloading and installing node v16.20.2…
7:12:57 PM: Downloading https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz…
7:12:57 PM: Computing checksum with sha256sum
7:12:57 PM: Checksums matched!
7:12:59 PM: Now using node v16.20.2 (npm v8.19.4)
7:12:59 PM: Enabling Node.js Corepack
7:12:59 PM: Started restoring cached build plugins
7:12:59 PM: Finished restoring cached build plugins
7:12:59 PM: Started restoring cached corepack dependencies
7:12:59 PM: Finished restoring cached corepack dependencies
7:12:59 PM: No npm workspaces detected
7:12:59 PM: Started restoring cached node modules
7:12:59 PM: Finished restoring cached node modules
7:12:59 PM: Installing npm packages using npm version 8.19.4
7:13:01 PM: Failed during stage “Install dependencies”: dependency_installation script returned non-zero exit code: 1
7:13:01 PM: npm ERR! code ERESOLVE
7:13:01 PM: npm ERR! ERESOLVE could not resolve
7:13:01 PM: npm ERR!
7:13:01 PM: npm ERR! While resolving: gatsby-plugin-next-seo@1.11.0
7:13:01 PM: npm ERR! Found: gatsby@5.12.6
7:13:01 PM: npm ERR! node_modules/gatsby
7:13:01 PM: npm ERR! gatsby@“5.12.6” from the root project
7:13:01 PM: npm ERR! peer gatsby@“^5.0.0-next” from babel-plugin-remove-graphql-queries@5.12.0
7:13:01 PM: npm ERR! node_modules/babel-plugin-remove-graphql-queries
7:13:01 PM: npm ERR! babel-plugin-remove-graphql-queries@“^5.12.0” from gatsby@5.12.6
7:13:01 PM: npm ERR! babel-plugin-remove-graphql-queries@“^5.12.0” from gatsby-plugin-image@3.12.1
7:13:01 PM: npm ERR! node_modules/gatsby-plugin-image
7:13:01 PM: npm ERR! gatsby-plugin-image@“3.12.1” from the root project
7:13:01 PM: npm ERR! 1 more (gatsby-plugin-typescript)
7:13:01 PM: npm ERR! 21 more (gatsby-plugin-catch-links, gatsby-plugin-feed, …)
7:13:01 PM: npm ERR!
7:13:01 PM: npm ERR! Could not resolve dependency:
7:13:01 PM: npm ERR! peer gatsby@“^2.0.0 || ^3.0.0 || ^4.0.0” from gatsby-plugin-next-seo@1.11.0
7:13:01 PM: npm ERR! node_modules/gatsby-plugin-next-seo
7:13:01 PM: npm ERR! gatsby-plugin-next-seo@“1.11.0” from the root project
7:13:01 PM: npm ERR!
7:13:01 PM: npm ERR! Conflicting peer dependency: gatsby@4.25.7
7:13:01 PM: npm ERR! node_modules/gatsby
7:13:01 PM: npm ERR! peer gatsby@“^2.0.0 || ^3.0.0 || ^4.0.0” from gatsby-plugin-next-seo@1.11.0
7:13:01 PM: npm ERR! node_modules/gatsby-plugin-next-seo
7:13:01 PM: npm ERR! gatsby-plugin-next-seo@“1.11.0” from the root project
7:13:01 PM: npm ERR!
7:13:01 PM: npm ERR! Fix the upstream dependency conflict, or retry
7:13:01 PM: npm ERR! this command with --force, or --legacy-peer-deps
7:13:01 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
7:13:01 PM: npm ERR!
7:13:01 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
7:13:01 PM: npm ERR! A complete log of this run can be found in:
7:13:01 PM: npm ERR! /opt/buildhome/.npm/_logs/2023-10-11T15_42_59_827Z-debug-0.log
7:13:01 PM: Error during npm install
7:13:01 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
7:13:01 PM: Failing build: Failed to install dependencies.
Blockquote
Initializing error, the files run perfectly in the local system, but Netlify is not able to run them.
https://github.com/MH-Mangelian/gatsby-starter-netlify-tailwind