问题描述
上游发生了变化,当我将代码部署为netlify时,出现了构建错误。
10:49:56 AM: Build ready to start
10:49:58 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
10:49:58 AM: build-image tag: v3.4.1
10:49:58 AM: buildbot version: c14f8ac04f7535496782ceb786d06f5741c8ed0f
10:49:58 AM: Fetching cached dependencies
10:49:58 AM: Starting to download cache of 355.6MB
10:50:01 AM: Finished downloading cache in 2.77891072s
10:50:01 AM: Starting to extract cache
10:50:14 AM: Finished extracting cache in 12.945203941s
10:50:14 AM: Finished fetching cache in 15.800518461s
10:50:14 AM: Starting to prepare the repo for build
10:50:14 AM: Preparing Git Reference refs/heads/master
10:50:16 AM: Different publish path detected,going to use the one specified in the Netlify configuration file: 'public' versus 'public/' in the Netlify UI
10:50:16 AM: Starting build script
10:50:16 AM: Installing dependencies
10:50:16 AM: Python version set to 2.7
10:50:16 AM: Started restoring cached node version
10:50:19 AM: Finished restoring cached node version
10:50:20 AM: Downloading and installing node v10.22.1...
10:50:20 AM: Downloading https://nodejs.org/dist/v10.22.1/node-v10.22.1-linux-x64.tar.xz...
10:50:21 AM: Computing checksum with sha256sum
10:50:21 AM: Checksums matched!
10:50:24 AM: Now using node v10.22.1 (npm v6.14.6)
10:50:24 AM: Started restoring cached build plugins
10:50:24 AM: Finished restoring cached build plugins
10:50:24 AM: Attempting ruby version 2.6.2,read from environment
10:50:25 AM: Using ruby version 2.6.2
10:50:25 AM: Using PHP version 5.6
10:50:25 AM: 5.2 is already installed.
10:50:25 AM: Using Swift version 5.2
10:50:25 AM: Started restoring cached node modules
10:50:25 AM: Finished restoring cached node modules
10:50:25 AM: Started restoring cached yarn cache
10:50:25 AM: Finished restoring cached yarn cache
10:50:26 AM: Installing NPM modules using Yarn version 1.17.0
10:50:26 AM: yarn install v1.17.0
10:50:27 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning,remove package-lock.json.
10:50:27 AM: [1/4] Resolving packages...
10:50:31 AM: [2/4] Fetching packages...
10:51:04 AM: info [email protected]: The platform "linux" is incompatible with this module.
10:51:04 AM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
10:51:04 AM: info [email protected]: The platform "linux" is incompatible with this module.
10:51:04 AM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
10:51:04 AM: [3/4] Linking dependencies...
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > apollo-cache > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > apollo-boost > apollo-link-error > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/[email protected]" has unmet peer dependency "graphql@^14.6.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "gatsby > [email protected]" has incorrect peer dependency "@babel/core@^7.11.6".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > [email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/links > [email protected]" has unmet peer dependency "graphql@14 - 15".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/links > [email protected]" has unmet peer dependency "subscriptions-transport-ws@^0.9.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/relay-operation-optimizer > [email protected]" has unmet peer dependency "graphql@^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > graphql-tools > @graphql-tools/url-loader > [email protected]" has unmet peer dependency "graphql@>=0.10.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/links > apollo-upload-client > @apollo/[email protected]" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/links > apollo-upload-client > @apollo/client > [email protected]" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "@prismicio/gatsby-source-prismic-graphql > @prismicio/gatsby-source-graphql-universal > gatsby-source-graphql > @graphql-tools/links > apollo-upload-client > @apollo/client > @graphql-typed-document-node/[email protected]" has unmet peer dependency "graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
10:51:04 AM: warning "gatsby > @pmmmwh/[email protected]" has incorrect peer dependency "react-refresh@^0.8.2".
10:51:04 AM: warning "gatsby-plugin-netlify > [email protected]" has unmet peer dependency "webpack@>=4.4.0".
10:51:04 AM: warning "gatsby-plugin-sass > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
10:51:05 AM: error An unexpected error occurred: "expected hoisted manifest for \"@prismicio/gatsby-source-prismic-graphql#gatsby#terser-webpack-plugin#schema-utils\"".
10:51:05 AM: info If you think this is a bug,please open a bug report with the information provided in "/opt/build/repo/yarn-error.log".
10:51:05 AM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
10:51:05 AM: Error during Yarn install
10:51:05 AM: Error running command: Build script returned non-zero exit code: 1
10:51:05 AM: Failing build: Failed to build site
10:51:05 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1
10:51:05 AM: Finished processing build request in 1m7.090774052s
我的packages.json如下:
{
"name": "gatsby-starter-default","private": true,"description": "A simple starter to get up and developing quickly with Gatsby","version": "0.1.0","author": "Kyle Mathews <[email protected]>","dependencies": {
"@prismicio/gatsby-source-prismic-graphql": "^3.6.13","bulma": "^0.9.0","gatsby": "2.24.51","gatsby-image": "^2.4.8","gatsby-plugin-load-script": "^1.1.0","gatsby-plugin-manifest": "^2.4.13","gatsby-plugin-netlify": "^2.3.7","gatsby-plugin-offline": "^3.2.12","gatsby-plugin-react-helmet": "^3.3.5","gatsby-plugin-sass": "^2.3.6","gatsby-plugin-sharp": "^2.6.13","gatsby-source-filesystem": "^2.3.13","gatsby-transformer-sharp": "^2.5.6","node-sass": "^4.14.1","nuka-carousel": "^4.7.0","prismic-reactjs": "^1.3.1","prop-types": "^15.7.2","react": "^16.12.0","react-dom": "^16.12.0","react-helmet": "^6.1.0","react-icons": "^3.10.0","react-typography": "^0.16.19"
},"devDependencies": {
"prettier": "2.0.5"
},"keywords": [
"gatsby"
],"license": "MIT","scripts": {
"build": "gatsby build","develop": "gatsby develop","format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"","start": "npm run develop","serve": "gatsby serve","clean": "gatsby clean","test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1","postinstall": "node scripts/injectPrismic.js"
},"repository": {
"type": "git","url": "https://github.com/gatsbyjs/gatsby-starter-default"
},"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
当我在本地进行gatsby build
时,一切都很好。它只是在Netlify上失败。怎么了?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)