I'm creating a documentation page for my project, but I can't build the project in netlify.
gridsome build command works fine in local environment, but netlify outputs the following:
9:08:24 PM: Waiting for other deploys from your team to complete. Check the queue: https://app.netlify.com/teams/sparxastronomy/builds
9:09:06 PM: Build ready to start
9:09:08 PM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667
9:09:08 PM: build-image tag: v4.3.1
9:09:08 PM: buildbot version: f650485c830eb31597911322420b99299a4303b8
9:09:08 PM: Fetching cached dependencies
9:09:08 PM: Failed to fetch cache, continuing with build
9:09:08 PM: Starting to prepare the repo for build
9:09:09 PM: No cached dependencies found. Cloning fresh repo
9:09:09 PM: git clone https://github.com/sparxastronomy/NBody-website
9:09:10 PM: Preparing Git Reference refs/heads/main
9:09:11 PM: Parsing package.json dependencies
9:09:11 PM: Starting build script
9:09:11 PM: Installing dependencies
9:09:11 PM: Python version set to 2.7
9:09:12 PM: Downloading and installing node v16.10.0...
9:09:12 PM: Downloading https://nodejs.org/dist/v16.10.0/node-v16.10.0-linux-x64.tar.xz...
9:09:13 PM: Computing checksum with sha256sum
9:09:13 PM: Checksums matched!
9:09:16 PM: Now using node v16.10.0 (npm v7.24.0)
9:09:17 PM: Started restoring cached build plugins
9:09:17 PM: Finished restoring cached build plugins
9:09:17 PM: Attempting ruby version 2.7.2, read from environment
9:09:19 PM: Using ruby version 2.7.2
9:09:19 PM: Using PHP version 8.0
9:09:19 PM: Started restoring cached yarn cache
9:09:19 PM: Finished restoring cached yarn cache
9:09:19 PM: Installing yarn at version 1.22.10
9:09:19 PM: Installing Yarn!
9:09:19 PM: > Downloading tarball...
9:09:19 PM: [1/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz --> /tmp/yarn.tar.gz.ebib73uRBf
9:09:19 PM: % Total % Received % Xferd Average Speed Time Time Time Current
9:09:19 PM: Dload Upload Total Spent Left Speed
9:09:19 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:09:19 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:09:19 PM: 100 81 100 81 0 0 554 0 --:--:-- --:--:-- --:--:-- 551
9:09:19 PM: 100 95 100 95 0 0 262 0 --:--:-- --:--:-- --:--:-- 262
9:09:20 PM: 100 626 100 626 0 0 1059 0 --:--:-- --:--:-- --:--:-- 1059
9:09:20 PM: 100 1215k 100 1215k 0 0 1660k 0 --:--:-- --:--:-- --:--:-- 1660k
9:09:20 PM: [2/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.asc --> /tmp/yarn.tar.gz.ebib73uRBf.asc
9:09:20 PM: % Total % Received % Xferd Average Speed Time Time Time Current
9:09:20 PM: Dload Upload Total Spent Left Speed
9:09:20 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:09:20 PM: 100 85 100 85 0 0 1770 0 --:--:-- --:--:-- --:--:-- 1770
9:09:20 PM: 100 99 100 99 0 0 1178 0 --:--:-- --:--:-- --:--:-- 1178
9:09:20 PM: 100 630 100 630 0 0 5675 0 --:--:-- --:--:-- --:--:-- 5675
9:09:20 PM: 100 832 100 832 0 0 5985 0 --:--:-- --:--:-- --:--:-- 5985
9:09:20 PM: > Verifying integrity...
9:09:20 PM: gpg: Signature made Fri 02 Oct 2020 11:17:27 AM UTC
9:09:20 PM: gpg: using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
9:09:20 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>" [unknown]
9:09:20 PM: gpg: WARNING: This key is not certified with a trusted signature!
9:09:20 PM: gpg: There is no indication that the signature belongs to the owner.
9:09:20 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
9:09:20 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
9:09:20 PM: > GPG signature looks good
9:09:20 PM: > Extracting to ~/.yarn...
9:09:20 PM: > Adding to $PATH...
9:09:20 PM: > Successfully installed Yarn 1.22.10! Please open another terminal where the `yarn` command will now be available.
9:09:21 PM: No yarn workspaces detected
9:09:21 PM: Started restoring cached node modules
9:09:21 PM: Finished restoring cached node modules
9:09:21 PM: Installing NPM modules using Yarn version 1.22.10
9:09:22 PM: yarn install v1.22.10
9:09:22 PM: 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.
9:09:22 PM: [1/4] Resolving packages...
9:09:23 PM: [2/4] Fetching packages...
9:09:25 PM: warning mini-css-extract-plugin@0.5.0: Invalid bin field for "mini-css-extract-plugin".
9:09:25 PM: warning url-loader@1.1.2: Invalid bin field for "url-loader".
9:09:45 PM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
9:09:45 PM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
9:09:45 PM: [3/4] Linking dependencies...
9:09:45 PM: warning "gridsome-remark-katex > remark-math@1.0.6" has unmet peer dependency "remark-parse@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
9:09:45 PM: warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
9:09:53 PM: [4/4] Building fresh packages...
9:10:04 PM: error /opt/build/repo/node_modules/sharp: Command failed.
9:10:04 PM: Exit code: 1
9:10:04 PM: Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
9:10:04 PM: Arguments:
9:10:04 PM: Directory: /opt/build/repo/node_modules/sharp
9:10:04 PM: Output:
9:10:04 PM: info sharp Detected globally-installed libvips v8.9.1
9:10:04 PM: info sharp Building from source via node-gyp
9:10:04 PM: gyp info it worked if it ends with ok
9:10:04 PM: gyp info using node-gyp@7.1.2
9:10:04 PM: gyp info using node@16.10.0 | linux | x64
9:10:04 PM: gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
9:10:04 PM: gyp http GET https://nodejs.org/download/release/v16.10.0/node-v16.10.0-headers.tar.gz
9:10:04 PM: gyp http 200 https://nodejs.org/download/release/v16.10.0/node-v16.10.0-headers.tar.gz
9:10:04 PM: gyp http GET https://nodejs.org/download/release/v16.10.0/SHASUMS256.txt
9:10:04 PM: gyp http 200 https://nodejs.org/download/release/v16.10.0/SHASUMS256.txt
9:10:04 PM: (node:1792) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
9:10:04 PM: (Use `node --trace-deprecation ...` to show where the warning was created)
9:10:04 PM: gyp info spawn /usr/bin/python3
9:10:04 PM: gyp info spawn args [
9:10:04 PM: gyp info spawn args '/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
9:10:04 PM: gyp info spawn args 'binding.gyp',
9:10:04 PM: gyp info spawn args '-f',
9:10:04 PM: gyp info spawn args 'make',
9:10:04 PM: gyp info spawn args '-I',
9:10:04 PM: gyp info spawn args '/opt/build/repo/node_modules/sharp/build/config.gypi',
9:10:04 PM: gyp info spawn args '-I',
9:10:04 PM: gyp info spawn args '/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
9:10:04 PM: gyp info spawn args '-I',
9:10:04 PM: gyp info spawn args '/opt/buildhome/.cache/node-gyp/16.10.0/include/node/common.gypi',
9:10:04 PM: gyp info spawn args '-Dlibrary=shared_library',
9:10:04 PM: gyp info spawn args '-Dvisibility=default',
9:10:04 PM: gyp info spawn args '-Dnode_root_dir=/opt/buildhome/.cache/node-gyp/16.10.0',
9:10:04 PM: gyp info spawn args '-Dnode_gyp_dir=/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp',
9:10:04 PM: gyp info spawn args '-Dnode_lib_file=/opt/buildhome/.cache/node-gyp/16.10.0/<(target_arch)/node.lib',
9:10:04 PM: gyp info spawn args '-Dmodule_root_dir=/opt/build/repo/node_modules/sharp',
9:10:04 PM: gyp info spawn args '-Dnode_engine=v8',
9:10:04 PM: gyp info spawn args '--depth=.',
9:10:04 PM: gyp info spawn args '--no-parallel',
9:10:04 PM: gyp info spawn args '--generator-output',
9:10:04 PM: gyp info spawn args 'build',
9:10:04 PM: gyp info spawn args '-Goutput_dir=.'
9:10:04 PM: gyp info spawn args ]
9:10:04 PM: gyp info spawn make
9:10:04 PM: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
9:10:04 PM: make: Entering directory '/opt/build/repo/node_modules/sharp/build'
9:10:04 PM: TOUCH Release/obj.target/libvips-cpp.stamp
9:10:04 PM: CXX(target) Release/obj.target/sharp/src/common.o
9:10:04 PM: In file included from /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8.h:30,
9:10:04 PM: from /opt/buildhome/.cache/node-gyp/16.10.0/include/node/node.h:63,
9:10:04 PM: from ../src/common.cc:22:
9:10:04 PM: /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
9:10:04 PM: /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8-internal.h:489:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
9:10:04 PM: 489 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
9:10:04 PM: | ^~~~~~~~~~~
9:10:04 PM: | remove_cv
9:10:04 PM: /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8-internal.h:489:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
9:10:04 PM: 489 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
9:10:04 PM: | ^~~~~~~~~~~
9:10:04 PM: | remove_cv
9:10:04 PM: /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8-internal.h:489:50: error: template argument 2 is invalid
9:10:04 PM: 489 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
9:10:04 PM: | ^
9:10:04 PM: /opt/buildhome/.cache/node-gyp/16.10.0/include/node/v8-internal.h:489:63: error: ‘::Perform’ has not been declared
9:10:04 PM: 489 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
9:10:04 PM: | ^~~~~~~
9:10:04 PM: make: *** [sharp.target.mk:183: Release/obj.target/sharp/src/common.o] Error 1
9:10:04 PM: make: Leaving directory '/opt/build/repo/node_modules/sharp/build'
9:10:04 PM: gyp ERR! build error
9:10:04 PM: gyp ERR! stack Error: `make` failed with exit code: 2
9:10:04 PM: gyp ERR! stack at ChildProcess.onExit (/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
9:10:04 PM: gyp ERR! stack at ChildProcess.emit (node:events:390:28)
9:10:04 PM: gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
9:10:04 PM: gyp ERR! System Linux 4.19.167+
9:10:04 PM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v16.10.0/bin/node" "/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
9:10:04 PM: gyp ERR! cwd /opt/build/repo/node_modules/sharp
9:10:04 PM: gyp ERR! node -v v16.10.0
9:10:04 PM: gyp ERR! node-gyp -v v7.1.2
9:10:04 PM: gyp ERR! not ok
9:10:04 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
9:12:15 PM: Error during Yarn install
9:12:15 PM: Build was terminated: Build script returned non-zero exit code: 1
9:12:15 PM: Creating deploy upload records
9:12:15 PM: Failing build: Failed to build site
9:12:15 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
9:12:15 PM: Finished processing build request in 3m6.565638414s
I'm creating a documentation page for my project, but I can't build the project in netlify.
gridsome build
command works fine in local environment, but netlify outputs the following: