Home
Support Forums

Unknown error with deploy

Hi! My deploy is failing and I don’t know why. I suspect it might have to do with the fact that my app runs with Node v10 but I’m not sure if that’s the problem or how could I solve it.

Site: quizzical-poitras-f63a39.netlify.app

logs (only last part):


7:19:00 PM:   rm -rf "Release/sass.a" && cp -af "Release/obj.target/src/sass.a" "Release/sass.a"
7:19:00 PM:   g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/opt/buildhome/.node-gyp/16.13.0/include/node -I/opt/buildhome/.node-gyp/16.13.0/src -I/opt/buildhome/.node-gyp/16.13.0/deps/openssl/config -I/opt/buildhome/.node-gyp/16.13.0/deps/openssl/openssl/include -I/opt/buildhome/.node-gyp/16.13.0/deps/uv/include -I/opt/buildhome/.node-gyp/16.13.0/deps/zlib -I/opt/buildhome/.node-gyp/16.13.0/deps/v8/include -I../../nan -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++14 -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
7:19:00 PM: In file included from /opt/buildhome/.node-gyp/16.13.0/include/node/v8.h:30,
7:19:00 PM:                  from /opt/buildhome/.node-gyp/16.13.0/include/node/node.h:63,
7:19:00 PM:                  from ../../nan/nan.h:56,
7:19:00 PM:                  from ../src/binding.cpp:1:
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
7:19:00 PM:   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
7:19:00 PM:       |                                      ^~~~~~~~~~~
7:19:00 PM:       |                                      remove_cv
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
7:19:00 PM:   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
7:19:00 PM:       |                                      ^~~~~~~~~~~
7:19:00 PM:       |                                      remove_cv
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
7:19:00 PM:   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
7:19:00 PM:       |                                                  ^
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
7:19:00 PM:   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
7:19:00 PM:       |                                                               ^~~~~~~
7:19:00 PM: ../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
7:19:00 PM: ../src/binding.cpp:284:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
7:19:00 PM:   284 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
7:19:00 PM:       |                                                                                                  ^~~~~~~~~~~~
7:19:00 PM: ../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
7:19:00 PM: ../src/binding.cpp:320:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
7:19:00 PM:   320 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
7:19:00 PM:       |                                                                                                  ^~~~~~~~~~~~
7:19:00 PM: In file included from ../../nan/nan.h:56,
7:19:00 PM:                  from ../src/binding.cpp:1:
7:19:00 PM: ../src/binding.cpp: At global scope:
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
7:19:00 PM:   821 |       (node::addon_register_func) (regfunc),                          \
7:19:00 PM:       |                                           ^
7:19:00 PM: /opt/buildhome/.node-gyp/16.13.0/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
7:19:00 PM:   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
7:19:00 PM:       |   ^~~~~~~~~~~~~
7:19:00 PM: ../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
7:19:00 PM:   358 | NODE_MODULE(binding, RegisterModule);
7:19:00 PM:       | ^~~~~~~~~~~
7:19:00 PM: make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
7:19:00 PM: make: Leaving directory '/opt/build/repo/cno-futbol-app/node_modules/node-sass/build'
7:19:00 PM: gyp ERR! build error
7:19:00 PM: gyp ERR! stack Error: `make` failed with exit code: 2
7:19:00 PM: gyp ERR! stack     at ChildProcess.onExit (/opt/build/repo/cno-futbol-app/node_modules/node-gyp/lib/build.js:262:23)
7:19:00 PM: gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
7:19:00 PM: gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
7:19:00 PM: gyp ERR! System Linux 4.19.167+
7:19:00 PM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v16.13.0/bin/node" "/opt/build/repo/cno-futbol-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
7:19:00 PM: gyp ERR! cwd /opt/build/repo/cno-futbol-app/node_modules/node-sass
7:19:00 PM: gyp ERR! node -v v16.13.0
7:19:00 PM: gyp ERR! node-gyp -v v3.8.0
7:19:00 PM: gyp ERR! not ok
7:19:00 PM: Build failed with error code: 1
7:19:00 PM: Error during Yarn install
7:19:00 PM: Build was terminated: Build script returned non-zero exit code: 1
7:19:00 PM: Failing build: Failed to build site
7:19:00 PM: Finished processing build request in 3m48.462325977s

Hiya, sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile:

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!

The error log shows that it executed with node v16.13.0.

If your app requires node v10 you will need to specify that as shown in the documentation here:

So either set a NODE_VERSION environment variable in the Netlify configuration or add a .node-version or .nvmrc file to your repo that contains the version you want Netlify to use.

1 Like