Deploy failed error on deployment from git

I need advice to debug deploy Netlify App
:51:35 PM: npm ERR! gyp verb download contents checksum {“node-v16.13.1-headers.tar.gz”:“f2101cdf05dd040397000596ed0f285dff74a926637cfeabab8e98bb7ba67327”}
2:51:35 PM: npm ERR! gyp verb validating download checksum for node-v16.13.1-headers.tar.gz (f2101cdf05dd040397000596ed0f285dff74a926637cfeabab8e98bb7ba67327 == f2101cdf05dd040397000596ed0f285dff74a926637cfeabab8e98bb7ba67327)
2:51:35 PM: npm ERR! gyp verb get node dir target node version installed: 16.13.1
2:51:35 PM: npm ERR! gyp verb build dir attempting to create “build” dir: /opt/build/repo/node_modules/node-sass/build
2:51:35 PM: npm ERR! gyp verb build dir “build” dir needed to be created? /opt/build/repo/node_modules/node-sass/build
2:51:35 PM: npm ERR! gyp verb build/config.gypi creating config file
2:51:35 PM: npm ERR! gyp verb build/config.gypi writing out config file: /opt/build/repo/node_modules/node-sass/build/config.gypi
2:51:35 PM: npm ERR! (node:1418) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
2:51:35 PM: npm ERR! (Use node --trace-deprecation ... to show where the warning was created)
2:51:35 PM: npm ERR! gyp verb config.gypi checking for gypi file: /opt/build/repo/node_modules/node-sass/config.gypi
2:51:35 PM: npm ERR! gyp verb common.gypi checking for gypi file: /opt/build/repo/node_modules/node-sass/common.gypi
2:51:35 PM: npm ERR! gyp verb gyp gyp format was not specified; forcing “make”
2:51:35 PM: npm ERR! gyp info spawn /opt/buildhome/python2.7/bin/python2
2:51:35 PM: npm ERR! gyp info spawn args [
2:51:35 PM: npm ERR! gyp info spawn args ‘/opt/build/repo/node_modules/node-gyp/gyp/gyp_main.py’,
2:51:35 PM: npm ERR! gyp info spawn args ‘binding.gyp’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-f’,
2:51:35 PM: npm ERR! gyp info spawn args ‘make’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-I’,
2:51:35 PM: npm ERR! gyp info spawn args ‘/opt/build/repo/node_modules/node-sass/build/config.gypi’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-I’,
2:51:35 PM: npm ERR! gyp info spawn args ‘/opt/build/repo/node_modules/node-gyp/addon.gypi’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-I’,
2:51:35 PM: npm ERR! gyp info spawn args ‘/opt/buildhome/.node-gyp/16.13.1/include/node/common.gypi’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dvisibility=default’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dnode_root_dir=/opt/buildhome/.node-gyp/16.13.1’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/opt/build/repo/node_modules/node-gyp’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dnode_lib_file=/opt/buildhome/.node-gyp/16.13.1/<(target_arch)/node.lib’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/opt/build/repo/node_modules/node-sass’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
2:51:35 PM: npm ERR! gyp info spawn args ‘–depth=.’,
2:51:35 PM: npm ERR! gyp info spawn args ‘–no-parallel’,
2:51:35 PM: npm ERR! gyp info spawn args ‘–generator-output’,
2:51:35 PM: npm ERR! gyp info spawn args ‘build’,
2:51:35 PM: npm ERR! gyp info spawn args ‘-Goutput_dir=.’
2:51:35 PM: npm ERR! gyp info spawn args ]
2:51:35 PM: npm ERR! gyp verb command build
2:51:35 PM: npm ERR! gyp verb build type Release
2:51:35 PM: npm ERR! gyp verb architecture x64
2:51:35 PM: npm ERR! gyp verb node dev dir /opt/buildhome/.node-gyp/16.13.1
2:51:35 PM: npm ERR! gyp verb which succeeded for make /usr/bin/make
2:51:35 PM: npm ERR! gyp info spawn make
2:51:35 PM: npm ERR! gyp info spawn args [ ‘V=1’, ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
2:51:35 PM: npm ERR! …/src/libsass/src/cencode.c: In function ‘base64_encode_block’:
2:51:35 PM: npm ERR! …/src/libsass/src/cencode.c:48:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
2:51:35 PM: npm ERR! 48 | result = (fragment & 0x003) << 4;
2:51:35 PM: npm ERR! | ~^~~~~~~~~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/cencode.c:52:2: note: here
2:51:35 PM: npm ERR! 52 | case step_B:
2:51:35 PM: npm ERR! | ^~~~
2:51:35 PM: npm ERR! …/src/libsass/src/cencode.c:62:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
2:51:35 PM: npm ERR! 62 | result = (fragment & 0x00f) << 2;
2:51:35 PM: npm ERR! | ~^~~~~~~~~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/cencode.c:66:2: note: here
2:51:35 PM: npm ERR! 66 | case step_C:
2:51:35 PM: npm ERR! | ^~~~
2:51:35 PM: npm ERR! …/src/libsass/src/functions.cpp: In function ‘void Sass::Functions::handle_utf8_error(const Sass::ParserState&, Sass::Backtraces)’:
2:51:35 PM: npm ERR! …/src/libsass/src/functions.cpp:110:20: warning: catching polymorphic type ‘class utf8::invalid_code_point’ by value [-Wcatch-value=]
2:51:35 PM: npm ERR! 110 | catch (utf8::invalid_code_point) {
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/functions.cpp:114:20: warning: catching polymorphic type ‘class utf8::not_enough_room’ by value [-Wcatch-value=]
2:51:35 PM: npm ERR! 114 | catch (utf8::not_enough_room) {
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/functions.cpp:118:20: warning: catching polymorphic type ‘class utf8::invalid_utf8’ by value [-Wcatch-value=]
2:51:35 PM: npm ERR! 118 | catch (utf8::invalid_utf8) {
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/json.cpp: In function ‘char* json_encode_string(const char*)’:
2:51:35 PM: npm ERR! …/src/libsass/src/json.cpp:405:15: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
2:51:35 PM: npm ERR! 405 | catch (std::exception) {
2:51:35 PM: npm ERR! | ^~~~~~~~~
2:51:35 PM: npm ERR! …/src/libsass/src/json.cpp: In function ‘char* json_stringify(const JsonNode*, const char*)’:
2:51:35 PM: npm ERR! …/src/libsass/src/json.cpp:424:15: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
2:51:35 PM: npm ERR! 424 | catch (std::exception) {
2:51:35 PM: npm ERR! | ^~~~~~~~~
2:51:35 PM: npm ERR! In file included from /opt/buildhome/.node-gyp/16.13.1/include/node/v8.h:30,
2:51:35 PM: npm ERR! from /opt/buildhome/.node-gyp/16.13.1/include/node/node.h:63,
2:51:35 PM: npm ERR! from …/…/nan/nan.h:58,
2:51:35 PM: npm ERR! from …/src/binding.cpp:1:
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2:51:35 PM: npm ERR! 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
2:51:35 PM: npm ERR! | ^~~~~~~~~~~
2:51:35 PM: npm ERR! | remove_cv
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2:51:35 PM: npm ERR! 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
2:51:35 PM: npm ERR! | ^~~~~~~~~~~
2:51:35 PM: npm ERR! | remove_cv
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
2:51:35 PM: npm ERR! 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
2:51:35 PM: npm ERR! | ^
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
2:51:35 PM: npm ERR! 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
2:51:35 PM: npm ERR! | ^~~~~~~
2:51:35 PM: npm ERR! …/src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
2:51:35 PM: npm ERR! …/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]
2:51:35 PM: npm ERR! 284 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
2:51:35 PM: npm ERR! …/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]
2:51:35 PM: npm ERR! 320 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~
2:51:35 PM: npm ERR! In file included from …/…/nan/nan.h:58,
2:51:35 PM: npm ERR! from …/src/binding.cpp:1:
2:51:35 PM: npm ERR! …/src/binding.cpp: At global scope:
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
2:51:35 PM: npm ERR! 821 | (node::addon_register_func) (regfunc),
2:51:35 PM: npm ERR! | ^
2:51:35 PM: npm ERR! /opt/buildhome/.node-gyp/16.13.1/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
2:51:35 PM: npm ERR! 855 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
2:51:35 PM: npm ERR! | ^~~~~~~~~~~~~
2:51:35 PM: npm ERR! …/src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
2:51:35 PM: npm ERR! 358 | NODE_MODULE(binding, RegisterModule);
2:51:35 PM: npm ERR! | ^~~~~~~~~~~
2:51:35 PM: npm ERR! make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
2:51:35 PM: npm ERR! gyp ERR! build error
2:51:35 PM: npm ERR! gyp ERR! stack Error: make failed with exit code: 2
2:51:35 PM: npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/build/repo/node_modules/node-gyp/lib/build.js:262:23)
2:51:35 PM: npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
2:51:35 PM: npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
2:51:35 PM: npm ERR! gyp ERR! System Linux 4.19.167+
2:51:35 PM: npm ERR! gyp ERR! command “/opt/buildhome/.nvm/versions/node/v16.13.1/bin/node” “/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
2:51:35 PM: npm ERR! gyp ERR! cwd /opt/build/repo/node_modules/node-sass
2:51:35 PM: npm ERR! gyp ERR! node -v v16.13.1
2:51:35 PM: npm ERR! gyp ERR! node-gyp -v v3.8.0
2:51:35 PM: npm ERR! gyp ERR! not ok
2:51:35 PM: npm ERR! Build failed with error code: 1
2:51:35 PM: npm ERR! A complete log of this run can be found in:
2:51:35 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-12-03T19_51_35_050Z-debug.log
2:51:35 PM: Error during NPM install
2:51:35 PM: Build was terminated: Build script returned non-zero exit code: 1
2:51:35 PM: Failing build: Failed to build site
2:51:35 PM: Finished processing build request in 3m45.596771277s

Hi @Romil

Unfortunately the deploy log you have shared either no longer exists or is private.
If you can share it (in part or whole) here this will help others provide you the advice you seek.

You probably need Node Version 14.17.5. Set it as explained here: