Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: symbol lookup error: Sharp Node Error #7

Closed
rosalesnikho opened this issue Sep 22, 2019 · 2 comments
Closed

node: symbol lookup error: Sharp Node Error #7

rosalesnikho opened this issue Sep 22, 2019 · 2 comments

Comments

@rosalesnikho
Copy link

Anyone else have a solution for Sharp dependency error? I've tried numerous solutions with no luck. I tried 'deploy' through Netlify's automated process ( https://app.netlify.com/start/deploy?repository=https://github.com/margueriteroth/gatsby-prismic-starter-prist )

and the error persists below:

2:36:04 PM: Build ready to start
2:36:06 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
2:36:06 PM: build-image tag: v3.3.2
2:36:06 PM: buildbot version: 89a70647dd4caa4f3273ade0957c10d63327cb10
2:36:06 PM: Fetching cached dependencies
2:36:06 PM: Failed to fetch cache, continuing with build
2:36:06 PM: Starting to prepare the repo for build
2:36:07 PM: No cached dependencies found. Cloning fresh repo
2:36:07 PM: git clone https://github.com/margueriteroth/gatsby-prismic-starter-prist
2:36:07 PM: Preparing Git Reference refs/heads/master
2:36:08 PM: Starting build script
2:36:08 PM: Installing dependencies
2:36:09 PM: Downloading and installing node v10.16.3...
2:36:10 PM: Downloading https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz...
2:36:10 PM: 0.9%
2:36:10 PM:
#######################
2:36:10 PM: 32.7%
2:36:10 PM: #########
2:36:10 PM: ############################################################### 100.0%
2:36:10 PM: Computing checksum with sha256sum
2:36:10 PM: Checksums matched!
2:36:13 PM: Now using node v10.16.3 (npm v6.9.0)
2:36:13 PM: Attempting ruby version 2.6.2, read from environment
2:36:15 PM: Using ruby version 2.6.2
2:36:15 PM: Using PHP version 5.6
2:36:15 PM: Started restoring cached node modules
2:36:15 PM: Finished restoring cached node modules
2:36:15 PM: Started restoring cached yarn cache
2:36:15 PM: Finished restoring cached yarn cache
2:36:15 PM: Installing yarn at version 1.17.0
2:36:15 PM: Installing Yarn!
2:36:15 PM: > Downloading tarball...
2:36:15 PM: [1/2]: https://yarnpkg.com/downloads/1.17.0/yarn-v1.1
2:36:15 PM: 7.0.tar.gz --> /tmp/yarn.tar.gz.loH3OfHXCm
2:36:15 PM: % Total % Received % Xferd Average Speed Time
2:36:15 PM: Time Time Current
2:36:15 PM: Dload
2:36:15 PM: Upload Total Spent Left Speed
2:36:15 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2:36:16 PM:
100 93 100 93 0 0 330 0 --:--:-- --:--:-
2:36:16 PM: - --:--:-- 330
2:36:16 PM:
100 609 0 609 0 0 974 0 --:--:-- --:--:-- --:--:-- 974
2:36:16 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2:36:16 PM:
100 1213k 100 1213k 0 0 1177k 0 0:00:01 0:00:01
2:36:16 PM: --:--:-- 4349k
2:36:16 PM: [2/2]: https://yarnpkg.co
2:36:16 PM: m/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.loH3OfHXCm.asc
2:36:16 PM:
100 97 100 97 0 0 2392 0 --:--:-- --:--:-- --:--:-- 2392
2:36:17 PM:
100 613 0 613 0 0 2695 0 --:--:-- --:--:-- --:--:-- 2695
2:36:17 PM:
100 832 100 832 0 0 3085 0 --:--:-- --:--:-- --:--:-- 3085
2:36:17 PM: > Verifying integrity...
2:36:17 PM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
2:36:17 PM: gpg: Good signature from "Yarn Packaging [email protected]"
2:36:17 PM: gpg: WARNING: This key is not certified with a trusted signature!
2:36:17 PM: gpg: There is no indication that the signature belongs to the owner.
2:36:17 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907
2:36:17 PM: BBB7 1646 B01B 86E5 0310
2:36:17 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
2:36:17 PM: > GPG signature looks good
2:36:17 PM: > Extracting to ~/.yarn...
2:36:17 PM: > Adding to $PATH...
2:36:17 PM: > We've added the following to your /opt/buildhome/.profile
2:36:17 PM: > If this isn't the profile of your current shell then please add the following to your correct profile:
2:36:17 PM: export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
2:36:17 PM:
2:36:17 PM: > Successfully installed Yarn 1.17.0! Please open another terminal where the yarn command will now be available.
2:36:18 PM: Installing NPM modules using Yarn version 1.17.0
2:36:19 PM: yarn install v1.17.0
2:36:19 PM: [1/4] Resolving packages...
2:36:27 PM: warning gatsby-source-prismic-graphql > gatsby-source-graphql-universal > @types/[email protected]: This is a stub types definition. graphql provides its own type definitions, so you do not need this installed.
2:36:32 PM: [2/4] Fetching packages...
2:37:05 PM: info [email protected]: The platform "linux" is incompatible with this module.
2:37:05 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2:37:05 PM: info [email protected]: The platform "linux" is incompatible with this module.
2:37:05 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2:37:05 PM: [3/4] Linking dependencies...
2:37:05 PM: warning "gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
2:37:05 PM: warning "gatsby > [email protected]" has incorrect peer dependency "[email protected]".
2:37:05 PM: warning "gatsby > @typescript-eslint/eslint-plugin > [email protected]" 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".
2:37:05 PM: warning "gatsby-plugin-emotion > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
2:37:05 PM: warning "gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
2:37:05 PM: warning "gatsby-plugin-sass > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
2:37:05 PM: warning "gatsby-source-prismic-graphql > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
2:37:05 PM: warning "gatsby-source-prismic-graphql > apollo-link-context > [email protected]" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0".
2:37:05 PM: warning "gatsby-source-prismic-graphql > apollo-boost > [email protected]" has unmet peer dependency "[email protected] || ^0.12.0 || ^0.13.0 || ^14.0.0".
2:37:05 PM: warning "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".
2:37:05 PM: warning "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".
2:37:05 PM: warning "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".
2:37:05 PM: warning "gatsby-source-prismic-graphql > gatsby-source-graphql > [email protected]" has unmet peer dependency "graphql@^0.13.0".
2:37:05 PM: warning "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".
2:37:05 PM: warning "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".
2:37:05 PM: warning " > [email protected]" has unmet peer dependency "moment@^2.24.0".
2:37:27 PM: [4/4] Building fresh packages...
2:37:36 PM: success Saved lockfile.
2:37:36 PM: Done in 77.55s.
2:37:36 PM: NPM modules installed using Yarn
2:37:37 PM: Started restoring cached go cache
2:37:37 PM: Finished restoring cached go cache
2:37:37 PM: unset GOOS;
2:37:37 PM: unset GOARCH;
2:37:37 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:37:37 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:37:37 PM: go version >&2;
2:37:37 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:37:37 PM: go version go1.12 linux/amd64
2:37:37 PM: Installing missing commands
2:37:37 PM: Verify run directory
2:37:37 PM: Executing user command: gatsby build
2:37:40 PM: success open and validate gatsby-configs — 0.057
2:37:41 PM: success load plugins — 1.011
2:37:41 PM: success onPreInit — 0.026
2:37:41 PM: success delete html and css files from previous builds — 0.030
2:37:41 PM: success initialize cache — 0.024
2:37:41 PM: success copy gatsby files — 0.060
2:37:41 PM: success onPreBootstrap — 0.025
2:37:42 PM: success source and transform nodes — 0.713
2:37:42 PM: success Add explicit types — 0.014
2:37:42 PM: success Add inferred types — 0.204
2:37:42 PM: success Processing types — 0.150
2:37:42 PM: success building schema — 0.437
2:37:43 PM: success createPages — 0.383
2:37:43 PM: success createPagesStatefully — 0.135
2:37:43 PM: success onPreExtractQueries — 0.022
2:37:43 PM: success update schema — 0.053
2:37:44 PM: success extract queries from components — 0.682
2:37:44 PM: success write out requires — 0.055
2:37:44 PM: success write out redirect data — 0.078
2:37:44 PM: node: symbol lookup error: /opt/build/repo/node_modules/gatsby-plugin-manifest/node_modules/sharp/build/Release/sharp.node: undefined symbol: _ZNK4vips6VImage7pngsaveEPKcPNS_7VOptionE
2:37:44 PM: Skipping functions preparation step: no functions directory set
2:37:44 PM: Caching artifacts
2:37:44 PM: Started saving node modules
2:37:44 PM: Finished saving node modules
2:37:44 PM: Started saving yarn cache
2:37:44 PM: Finished saving yarn cache
2:37:44 PM: Started saving pip cache
2:37:44 PM: Finished saving pip cache
2:37:44 PM: Started saving emacs cask dependencies
2:37:44 PM: Finished saving emacs cask dependencies
2:37:44 PM: Started saving maven dependencies
2:37:44 PM: Finished saving maven dependencies
2:37:44 PM: Started saving boot dependencies
2:37:44 PM: Finished saving boot dependencies
2:37:44 PM: Started saving go dependencies
2:37:44 PM: Finished saving go dependencies
2:37:47 PM: Error running command: Build script returned non-zero exit code: 127
2:37:47 PM: Failing build: Failed to build site
2:37:47 PM: failed during stage 'building site': Build script returned non-zero exit code: 127
2:37:47 PM: Finished processing build request in 1m41.381261881s

@rosalesnikho
Copy link
Author

I also get this error when trying to set up Prist locally on Win 64bit

The specified procedure could not be found.

\Users\gatsby-prismic-starter-prist\node_modules\gatsby-plugin-manifest\node_modules\sharp\build\Release\sharp.node

@rosalesnikho
Copy link
Author

I found a solution here: lovell/sharp#1388 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant