Problem building jopolin on archlinux

I'm trying to build joplin on my archlinux system, but when I run yarn install I get the following error:

<?xml version="1.0" encoding="UTF-8"?> <error> <name>ActionView::Template::Error</name> <message>undefined local variable or method `us_states_with_codes' for Places:Module Did you mean? us_state_codes</message> </error> 

I'm not really sure why it is using node-gyp 3.8.0, I have version 8.4.1 installed locally.

I'd like some guidance on how to build this.

Where is this error coming from? yarn errors typically look very different.

Whoops, somehow I pasted the wrong thing. This is the error:

npm ERR! code 1
npm ERR! path /bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! make: Entering directory '/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/build'
npm ERR!   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c
npm ERR!   TOUCH Release/obj.target/deps/action_before_build.stamp
npm ERR!   CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3280000/sqlite3.o
npm ERR!   AR(target) Release/obj.target/deps/sqlite3.a
npm ERR!   COPY Release/sqlite3.a
npm ERR!   CXX(target) Release/obj.target/node_sqlite3/src/backup.o
npm ERR! make: Leaving directory '/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/build'
npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/lib/binding/node-v102-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/lib/binding/node-v102-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.11.0
npm ERR! node-pre-gyp info using node@17.3.1 | linux | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
npm ERR! node-pre-gyp info check checked for "/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/lib/binding/node-v102-linux-x64/node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.0/node-v102-linux-x64.tar.gz
npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.0/node-v102-linux-x64.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.0/node-v102-linux-x64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.0 and node@17.3.1 (node-v102 ABI, glibc) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.0/node-v102-linux-x64.tar.gz 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@17.3.1 | linux | x64
npm ERR! gyp info ok 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@17.3.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.2 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v17.3.1/node-v17.3.1-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v17.3.1/node-v17.3.1-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v17.3.1/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v17.3.1/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/thayne/.cache/node-gyp/17.3.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/thayne/.cache/node-gyp/17.3.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/thayne/.cache/node-gyp/17.3.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/bulk/home/thayne/devel/aur2/joplin-full/src/joplin-2.6.10/packages/server/node_modules/sqlite3',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@17.3.1 | linux | x64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘strftimeFunc’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:22052:52: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 22052 |                       z==zBuf ? SQLITE_TRANSIENT : SQLITE_DYNAMIC);
npm ERR!       |                                                    ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3ErrorWithMsg’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:30393:54: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 30393 |     sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC);
npm ERR!       |                                                      ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3VdbeMemSetStr’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:75499:15: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 75499 |     if( xDel==SQLITE_DYNAMIC ){
npm ERR!       |               ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘valueFromExpr’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:75905:55: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 75905 |       sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
npm ERR!       |                                                       ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:75948:29: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 75948 |                          0, SQLITE_DYNAMIC);
npm ERR!       |                             ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3VdbeExec’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:91000:38: warning: cast between incompatible function types from ‘int (*)(u32,  void *, void *, void *)’ {aka ‘int (*)(unsigned int,  void *, void *, void *)’} to ‘void (*)(void *, const char *)’ [-Wcast-function-type]
npm ERR! 91000 |       void (*x)(void*,const char*) = (void(*)(void*,const char*))db->xTrace;
npm ERR!       |                                      ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3DefaultRowEst’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:110505:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
npm ERR! 110505 |   if( pIdx->pPartIdxWhere!=0 ) a[0] -= 10;  assert( 10==sqlite3LogEst(2) );
npm ERR!        |   ^~
npm ERR! In file included from Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:13656:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:110505:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
npm ERR! 110505 |   if( pIdx->pPartIdxWhere!=0 ) a[0] -= 10;  assert( 10==sqlite3LogEst(2) );
npm ERR!        |                                             ^~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:110506:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
npm ERR! 110506 |   if( a[0]<33 ) a[0] = 33;                  assert( 33==sqlite3LogEst(10) );
npm ERR!        |   ^~
npm ERR! In file included from Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:13656:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:110506:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
npm ERR! 110506 |   if( a[0]<33 ) a[0] = 33;                  assert( 33==sqlite3LogEst(10) );
npm ERR!        |                                             ^~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘printfFunc’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:113251:25: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 113251 |                         SQLITE_DYNAMIC);
npm ERR!        |                         ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘generateColumnNames’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:126515:58: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 126515 |         sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC);
npm ERR!        |                                                          ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:14137:27: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type]
npm ERR! 14137 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:126522:52: note: in expansion of macro ‘SQLITE_DYNAMIC’
npm ERR! 126522 |       sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC);
npm ERR!        |                                                    ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3InvokeBusyHandler’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:156204:12: warning: cast between incompatible function types from ‘int (*)(void *, int)’ to ‘int (*)(void *, int,  sqlite3_file *)’ [-Wcast-function-type]
npm ERR! 156204 |     xTra = (int(*)(void*,int,sqlite3_file*))p->xBusyHandler;
npm ERR!        |            ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3_busy_timeout’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:156282:30: warning: cast between incompatible function types from ‘int (*)(void *, int,  sqlite3_file *)’ to ‘int (*)(void *, int)’ [-Wcast-function-type]
npm ERR! 156282 |     sqlite3_busy_handler(db, (int(*)(void*,int))sqliteDefaultBusyCallback,
npm ERR!        |                              ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3_trace’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:156623:16: warning: cast between incompatible function types from ‘void (*)(void *, const char *)’ to ‘int (*)(u32,  void *, void *, void *)’ {aka ‘int (*)(unsigned int,  void *, void *, void *)’} [-Wcast-function-type]
npm ERR! 156623 |   db->xTrace = (int(*)(u32,void*,void*,void*))xTrace;
npm ERR!        |                ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3_db_status’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:20875:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 20875 |       op = SQLITE_DBSTATUS_CACHE_WRITE+1;
npm ERR!       |       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:20877:5: note: here
npm ERR! 20877 |     case SQLITE_DBSTATUS_CACHE_HIT:
npm ERR!       |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3_str_vappendf’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:27625:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 27625 |         flag_long = sizeof(char*)==sizeof(i64) ? 2 :
npm ERR!       |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 27626 |                      sizeof(char*)==sizeof(long int) ? 1 : 0;
npm ERR!       |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:27628:7: note: here
npm ERR! 27628 |       case etORDINAL:
npm ERR!       |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:27630:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 27630 |         cThousand = 0;
npm ERR!       |         ~~~~~~~~~~^~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:27632:7: note: here
npm ERR! 27632 |       case etDECIMAL:
npm ERR!       |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3GetToken’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:153777:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 153777 |       if( !sqlite3Isdigit(z[1]) )
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:153786:5: note: here
npm ERR! 153786 |     case CC_DIGIT: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:153876:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 153876 |       if( z[1]=='\'' ){
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:153890:5: note: here
npm ERR! 153890 |     case CC_ID: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3ExprCodeTarget’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:100345:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 100345 |     case TK_AGG_COLUMN: {
npm ERR!        |                         ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:100358:5: note: here
npm ERR! 100358 |     case TK_COLUMN: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘resolveP2Values’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:77052:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 77052 |           if( pOp->p2!=0 ) p->readOnly = 0;
npm ERR!       |             ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:77055:9: note: here
npm ERR! 77055 |         case OP_AutoCommit:
npm ERR!       |         ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:77093:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 77093 |         case OP_VFilter: {
npm ERR!       |                          ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:77102:9: note: here
npm ERR! 77102 |         default: {
npm ERR!       |         ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘resolveExprStep’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:96041:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 96041 |     case TK_ISNOT: {
npm ERR!       |                    ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:96057:5: note: here
npm ERR! 96057 |     case TK_BETWEEN:
npm ERR!       |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘impliesNotNullRow’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:101891:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 101890 |       if( (pExpr->pLeft->op==TK_COLUMN && IsVirtual(pExpr->pLeft->y.pTab))
npm ERR!        |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 101891 |        || (pExpr->pRight->op==TK_COLUMN && IsVirtual(pExpr->pRight->y.pTab))
npm ERR!        |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:101895:5: note: here
npm ERR! 101895 |     default:
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘fkActionTrigger’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:116360:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 116360 |         if( !pChanges ){
npm ERR!        |           ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:116364:7: note: here
npm ERR! 116364 |       default:
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3GenerateConstraintChecks’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:117819:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 117819 |         onError = OE_Abort;
npm ERR!        |                 ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:117823:7: note: here
npm ERR! 117823 |       case OE_Abort:
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:117981:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 117981 |         onError = OE_Abort;
npm ERR!        |                 ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:117984:7: note: here
npm ERR! 117984 |       case OE_Rollback:
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:118044:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118044 |         sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, 0, iDataCur);
npm ERR!        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:118048:7: note: here
npm ERR! 118048 |       case OE_Ignore: {
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:118260:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118260 |         sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, pIdx, iIdxCur+ix);
npm ERR!        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:118264:7: note: here
npm ERR! 118264 |       case OE_Ignore: {
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘sqlite3VdbeExec’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:84544:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 84544 |   if( (pIn3->flags & MEM_Null)==0 ) break;
npm ERR!       |     ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:84578:1: note: here
npm ERR! 84578 | case OP_Halt: {
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:84711:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 84711 |   if( pOp->p1>db->aLimit[SQLITE_LIMIT_LENGTH] ){
npm ERR!       |     ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:84730:1: note: here
npm ERR! 84730 | case OP_String: {          /* out2 */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:87786:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 87786 | case OP_IfNoHope: {     /* jump, in3 */
npm ERR!       |                   ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:87794:1: note: here
npm ERR! 87794 | case OP_NoConflict:     /* jump, in3 */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:88710:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 88710 |   p->aCounter[SQLITE_STMTSTATUS_SORT]++;
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:88725:1: note: here
npm ERR! 88725 | case OP_Rewind: {        /* jump */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:90021:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 90021 |   pOp->opcode = OP_AggStep1;
npm ERR!       |               ^
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:90024:1: note: here
npm ERR! 90024 | case OP_AggStep1: {
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:90893:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 90893 |   pOp->opcode += 2;
npm ERR!       |   ~~~~~~~~~~~~^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:90896:1: note: here
npm ERR! 90896 | case OP_PureFunc:              /* group */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘fts3SnippetFunc’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163899:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 163899 |     case 6: nToken = sqlite3_value_int(apVal[5]);
npm ERR!        |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163900:5: note: here
npm ERR! 163900 |     case 5: iCol = sqlite3_value_int(apVal[4]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163900:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 163900 |     case 5: iCol = sqlite3_value_int(apVal[4]);
npm ERR!        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163901:5: note: here
npm ERR! 163901 |     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163901:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 163901 |     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
npm ERR!        |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163902:5: note: here
npm ERR! 163902 |     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163902:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 163902 |     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
npm ERR!        |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163903:5: note: here
npm ERR! 163903 |     case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘fts3ColumnMethod’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163656:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 163656 |         iCol = p->nColumn;
npm ERR!        |         ~~~~~^~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:163660:5: note: here
npm ERR! 163660 |     default:
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c: In function ‘cellArea’:
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:183145:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183145 |       case 5:  area  = p->aCoord[9].f - p->aCoord[8].f;
npm ERR!        |                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:183146:7: note: here
npm ERR! 183146 |       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:183146:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183146 |       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:183147:7: note: here
npm ERR! 183147 |       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3280000/sqlite3.c:183147:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183147 |       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Can you give output of:

uname -a

and

node -v

Is this complete log? Looks truncated

❯ uname -a                                                                                                                                                                                              at 23:19:57 
Linux tardis 5.16.11-arch1-1 #1 SMP PREEMPT Thu, 24 Feb 2022 02:18:20 +0000 x86_64 GNU/Linux

❯ node -v                                                                                                                                                                                               at 23:19:59 
v17.6.0

no it isn't the full log, as the full log is quite long. I do think I included all of the error though.