Netlify’s domain name: khelocard-client.netlify.app
The project successfully builds on my local PC but here on netlify i see some bunch of random logs like CXX(target)… and at last it says “Build script returned non-zero exit code: 1”.
here’s my complete build log:
netlify_build_log
12:18:06 PM: Build ready to start
12:18:07 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
12:18:07 PM: build-image tag: v3.4.1
12:18:07 PM: buildbot version: bca3bbf1ce7c7ca2e2192b1683becc1d98c88c5b
12:18:08 PM: Fetching cached dependencies
12:18:08 PM: Failed to fetch cache, continuing with build
12:18:08 PM: Starting to prepare the repo for build
12:18:08 PM: No cached dependencies found. Cloning fresh repo
12:18:08 PM: git clone https://github.com/KheloCard/Frontend
12:18:09 PM: Preparing Git Reference refs/heads/master
This file has been truncated. show original
fool
August 10, 2020, 8:04pm
2
Hmm, that seems to be a problem in building node-gyp. I haven’t seen that before so it may be related to just the version you are running - do you require a specific version? This thread talks about some other potential solutions to similar problems:
opened 08:52PM - 24 Oct 19 UTC
closed 06:05PM - 01 Nov 19 UTC
### Problem description
Travis builds are failing when trying to install grpc… 1.24.1 with node v13.0.1, I've provided a snippet of the log output below.
```consoleAt global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
grpc_node.target.mk:190: recipe for target 'Release/obj.target/grpc_node/ext/call.o' failed
make: *** [Release/obj.target/grpc_node/ext/call.o] Error 1
make: Leaving directory '/home/travis/build/ExchangeUnion/xud/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/travis/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-1028-gcp
gyp ERR! command "/home/travis/.nvm/versions/node/v13.0.1/bin/node" "/home/travis/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd /home/travis/build/ExchangeUnion/xud/node_modules/grpc
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/travis/.nvm/versions/node/v13.0.1/bin/node /home/travis/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/travis/build/ExchangeUnion/xud/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1028:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 4.15.0-1028-gcp
node-pre-gyp ERR! command "/home/travis/.nvm/versions/node/v13.0.1/bin/node" "/home/travis/build/ExchangeUnion/xud/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/travis/build/ExchangeUnion/xud/node_modules/grpc
node-pre-gyp ERR! node -v v13.0.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute '/home/travis/.nvm/versions/node/v13.0.1/bin/node /home/travis/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/travis/build/ExchangeUnion/xud/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/travis/.npm/_logs/2019-10-24T20_36_20_629Z-debug.log
```
### Reproduction steps
Run a build on Travis CI with node 13 and grpc 1.24.1.
### Environment
- Travis build environment, Ubuntu 16.04.6 LTS
- Node version 13.0.1
- nvm
- node-gyp -v v5.0.5
- grpc 1.24.1 (also fails with 1.24.0)