Netlify部署不断失败,退出代码为127

时间:2020-02-20 02:26:18

标签: gatsby yarnpkg exit-code netlify

我正在尝试从Github部署一个Gatsby网站到Netlify。它不断失败,我不确定为什么。它给了我以下错误:Build script returned non-zero exit code: 127

这是部署日志:

6:00:17 PM: Waiting for other deploys from your team to complete
6:02:46 PM: Build ready to start
6:02:48 PM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
6:02:48 PM: build-image tag: v3.3.5
6:02:48 PM: buildbot version: 2fd8f04962d5dbc77b79b9c2f5ab7a077e87376b
6:02:48 PM: Fetching cached dependencies
6:02:48 PM: Starting to download cache of 254.9KB
6:02:48 PM: Finished downloading cache in 91.833119ms
6:02:48 PM: Starting to extract cache
6:02:49 PM: Failed to fetch cache, continuing with build
6:02:49 PM: Starting to prepare the repo for build
6:02:49 PM: No cached dependencies found. Cloning fresh repo
6:02:49 PM: git clone https://github.com/mattmaker/makingmoves
6:02:50 PM: Preparing Git Reference refs/heads/master
6:02:50 PM: Starting build script
6:02:50 PM: Installing dependencies
6:02:52 PM: Downloading and installing node v10.19.0...
6:02:52 PM: Downloading https://nodejs.org/dist/v10.19.0/node-v10.19.0-linux-x64.tar.xz...
6:02:52 PM: 
####################
6:02:52 PM:  28.0%
6:02:52 PM: 
########################################################################
6:02:52 PM: 100.0%
6:02:52 PM: Computing checksum with sha256sum
6:02:53 PM: Checksums matched!
6:02:55 PM: Now using node v10.19.0 (npm v6.13.4)
6:02:56 PM: Attempting ruby version 2.6.2, read from environment
6:02:57 PM: Using ruby version 2.6.2
6:02:57 PM: Using PHP version 5.6
6:02:57 PM: Started restoring cached node modules
6:02:57 PM: Finished restoring cached node modules
6:02:57 PM: Started restoring cached yarn cache
6:02:57 PM: Finished restoring cached yarn cache
6:02:57 PM: Installing yarn at version 1.17.0
6:02:57 PM: Installing Yarn!
6:02:57 PM: > Downloading tarball...
6:02:57 PM: [1/2]: https://yarnpkg.com/downloads/1.17.0/yarn-
6:02:57 PM: v1.17.0.tar.gz --> /tmp/yarn.tar.gz.gG9BCmSJMK
6:02:57 PM:   % Total    % Re
6:02:57 PM: ceived % Xferd  Average Speed   Time    Time     Time  Current
6:02:57 PM:                                  Dload  Up
6:02:57 PM: load   Total   Spent    Left  Speed
6:02:57 PM: 
  0     0    0     0    0     0      0      0 --
6:02:57 PM: :--:-- --:--:-- --:--:--     0
6:02:58 PM: 
100    80  100    80
6:02:58 PM:  0     0    234      0 --:--:-- --:--:-- --:--:--   234
6:02:58 PM: 
  0     0    0     0    0     0      0      0 --:-
6:02:58 PM: -:-- --:--:-- --:--:--     0
6:02:58 PM: 
100    93  100    93    0     0    138      0 --:--:-- --:
6:02:58 PM: --:-- --:--:--   678
6:02:58 PM: 
100   609  100   609    0     0    646      0 --:--:-- --:--:-- --:
6:02:58 PM: --:--   646
6:02:59 PM: 
100 1213k  100 1213k    0     0   811k      0  0:00:01  0:00:01 --:--:--
6:02:59 PM:   811k
6:02:59 PM: [2/2]: https://yarnpkg.com/downloads/1.17.0/y
6:02:59 PM: arn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.gG9BCmSJMK.asc
6:02:59 PM: 
  0    84    0     0    0     0      0      0 --:--:-- --:--:--
6:02:59 PM:  --:--:--     0
100    84  100    84    0     0   3041      0 --:
6:02:59 PM: --:-- --:--:-- --:--:-- 84000
6:02:59 PM: 
100    97  100    97    0
6:02:59 PM: 0   1744      0 --:--:-- --:--:-- --:--:--  1744
6:02:59 PM: 
100   613  100   613    0     0   7370      0 --:--:-- --
6:02:59 PM: :--:-- --:--:--  7370
6:02:59 PM: 
100   832  100   832    0     0
6:02:59 PM:   6799      0 --:--:-- --:--:-- --:--:--  6799
6:02:59 PM: > Verifying integrity...
6:02:59 PM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
6:02:59 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
6:02:59 PM: gpg: Note: This key has expired!
6:02:59 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646
6:02:59 PM:  B01B 86E5 0310
6:02:59 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
6:02:59 PM: > GPG signature looks good
6:02:59 PM: > Extracting to ~/.yarn...
6:02:59 PM: > Adding to $PATH...
6:03:00 PM: > Successfully installed Yarn 1.17.0! Please open another terminal where the `yarn` command will now be available.
6:03:01 PM: Installing NPM modules using Yarn version 1.17.0
6:03:01 PM: yarn install v1.17.0
6:03:01 PM: [1/4] Resolving packages...
6:03:03 PM: [2/4] Fetching packages...
6:03:34 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
6:03:34 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
6:03:34 PM: info fsevents@1.2.9: The platform "linux" is incompatible with this module.
6:03:34 PM: info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
6:03:34 PM: [3/4] Linking dependencies...
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-remark-prismjs@3.3.3" has unmet peer dependency "prismjs@^1.15.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > react-medium-image-zoom@3.1.2" has unmet peer dependency "prop-types@^15.5.8".
6:03:34 PM: warning "@narative/gatsby-theme-novela > @mdx-js/mdx > @babel/plugin-syntax-jsx@7.2.0" has unmet peer dependency "@babel/core@^7.0.0-0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > @mdx-js/mdx > @babel/plugin-syntax-object-rest-spread@7.2.0" has unmet peer dependency "@babel/core@^7.0.0-0".
6:03:34 PM: warning "gatsby > react-hot-loader@4.12.18" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-emotion > @emotion/babel-preset-css-prop@10.0.14" has unmet peer dependency "@babel/core@^7.0.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > babel-plugin-remove-graphql-queries@2.7.2" has unmet peer dependency "graphql@^14.1.1".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
6:03:34 PM: warning "gatsby > gatsby-cli > ink@2.6.0" has unmet peer dependency "@types/react@>=16.8.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @babel/plugin-transform-react-jsx@7.3.0" has unmet peer dependency "@babel/core@^7.0.0-0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @emotion/babel-plugin-jsx-pragmatic@0.1.3" has unmet peer dependency "@babel/core@^7.0.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin@7.5.5" has unmet peer dependency "@babel/core@^7.0.0".
6:03:34 PM: warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
6:04:33 PM: [4/4] Building fresh packages...
6:04:51 PM: Done in 109.98s.
6:04:51 PM: NPM modules installed using Yarn
6:04:52 PM: Started restoring cached go cache
6:04:52 PM: Finished restoring cached go cache
6:04:52 PM: unset GOOS;
6:04:52 PM: unset GOARCH;
6:04:52 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
6:04:52 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
6:04:52 PM: go version >&2;
6:04:52 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
6:04:52 PM: go version go1.12 linux/amd64
6:04:52 PM: Installing missing commands
6:04:52 PM: Verify run directory
6:04:52 PM: Executing user command: yarn build
6:04:52 PM: yarn run v1.17.0
6:04:52 PM: $ gatsby build
6:04:55 PM: success open and validate gatsby-configs - 0.070s
6:04:57 PM: success load plugins - 1.838s
6:04:57 PM: success onPreInit - 0.003s
6:04:57 PM: success delete html and css files from previous builds - 0.017s
6:04:57 PM: success initialize cache - 0.010s
6:04:57 PM: success copy gatsby files - 0.044s
6:04:57 PM: success onPreBootstrap - 0.029s
6:04:57 PM: success createSchemaCustomization - 0.008s
6:04:57 PM: info Creating GraphQL type definition for File
6:04:57 PM: info Creating GraphQL type definition for File
6:04:58 PM: warning Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
6:04:58 PM: success source and transform nodes - 1.297s
6:04:58 PM: warning Plugin `gatsby-source-filesystem` tried to define the GraphQL type `File`, which has already been defined by the plugin `null`.
6:04:58 PM: warning Plugin `gatsby-source-filesystem` tried to define the GraphQL type `File`, which has already been defined by the plugin `null`.
6:04:59 PM: success building schema - 0.605s
6:04:59 PM: { local: true }
6:04:59 PM: Config rootPath not set, using basePath instead => /
6:04:59 PM: Config basePath /
6:04:59 PM: Config authorsPath /authors
6:04:59 PM: Querying Authors & Articles source: Local
6:05:07 PM: Creating articles page
6:05:07 PM: Creating article posts
6:05:07 PM: Creating authors page
6:05:07 PM: success createPages - 8.271s
6:05:08 PM: success createPagesStatefully - 0.202s
6:05:08 PM: success onPreExtractQueries - 0.008s
6:05:08 PM: success update schema - 0.797s
6:05:09 PM: success extract queries from components - 0.879s
6:05:09 PM: success write out requires - 0.009s
6:05:09 PM: success write out redirect data - 0.002s
6:05:09 PM: /opt/buildhome/.nvm/versions/node/v10.19.0/bin/node: symbol lookup error: /opt/build/repo/node_modules/gatsby-plugin-manifest/node_modules/sharp/build/Release/sharp.node: undefined symbol: _ZNK4vips6VImage7pngsaveEPKcPNS_7VOptionE
6:05:09 PM: error Command failed with exit code 127.
6:05:09 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
6:05:09 PM: Skipping functions preparation step: no functions directory set
6:05:09 PM: Caching artifacts
6:05:09 PM: Started saving node modules
6:05:09 PM: Finished saving node modules
6:05:09 PM: Started saving yarn cache
6:05:09 PM: Finished saving yarn cache
6:05:09 PM: Started saving pip cache
6:05:09 PM: Finished saving pip cache
6:05:09 PM: Started saving emacs cask dependencies
6:05:10 PM: Finished saving emacs cask dependencies
6:05:10 PM: Started saving maven dependencies
6:05:10 PM: Finished saving maven dependencies
6:05:10 PM: Started saving boot dependencies
6:05:10 PM: Finished saving boot dependencies
6:05:10 PM: Started saving go dependencies
6:05:10 PM: Finished saving go dependencies
6:05:13 PM: Error running command: Build script returned non-zero exit code: 127
6:05:13 PM: Failing build: Failed to build site
6:05:13 PM: failed during stage 'building site': Build script returned non-zero exit code: 127
6:05:13 PM: Finished processing build request in 2m25.268656779s

我在做什么错了?

0 个答案:

没有答案