converge / instapy-dashboard

(discontinued) InstaPy Dashboard developed using React.js and Node.js
GNU Affero General Public License v3.0
218 stars 44 forks source link

Can't Install on Linux (VPS) #10

Closed RaihanStark closed 5 years ago

RaihanStark commented 5 years ago

I tried install it and then this error(?) came up

integer@2.1.0 install /root/instapy-dashboard/node_modules/integer node-gyp rebuild

make: Entering directory '/root/instapy-dashboard/node_modules/integer/build' CXX(target) Release/obj.target/integer/src/integer.o In file included from ../src/integer.hpp:3, from ../src/integer.cpp:1: /root/.node-gyp/11.8.0/include/node/node.h:495:43: warning: cast between incompa tible function types from ‘void ()(v8::Local, v8::Local )’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Loca l, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /root/.node-gyp/11.8.0/include/node/node.h:529:3: note: in expansion of macro ‘N ODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/integer.cpp:408:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(integer, Integer::Init); ^~~ In file included from /root/.node-gyp/11.8.0/include/node/node.h:63, from ../src/integer.hpp:3, from ../src/integer.cpp:1: /root/.node-gyp/11.8.0/include/node/v8.h: In instantiation of ‘void v8::Persiste ntBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallb ackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackIn fo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /root/.node-gyp/11.8.0/include/node/node_object_wrap.h:85:78: required from he re /root/.node-gyp/11.8.0/include/node/v8.h:9707:16: warning: cast between incompat ible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ SOLINK_MODULE(target) Release/obj.target/integer.node COPY Release/integer.node COPY ../build/integer.node TOUCH Release/obj.target/place_resulting_binary.stamp make: Leaving directory '/root/instapy-dashboard/node_modules/integer/build'

better-sqlite3@5.4.0 install /root/instapy-dashboard/node_modules/better-sqlit e3 node-gyp rebuild

make: Entering directory '/root/instapy-dashboard/node_modules/better-sqlite3/bu ild' TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d 609f6be182a2595df7a8e00f.intermediate TOUCH Release/obj.target/deps/locate_sqlite3.stamp CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o Release/obj/gen/sqlite3/sqlite3.c: In function ‘strftimeFunc’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:21921:52: note: in expansion of macro ‘SQLITE_ DYNAMIC’ z==zBuf ? SQLITE_TRANSIENT : SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3ErrorWithMsg’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:30178:54: note: in expansion of macro ‘SQLITE_ DYNAMIC’ sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3VdbeMemSetStr’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:75014:19: note: in expansion of macro ‘SQLITE_ DYNAMIC’ }else if( xDel==SQLITE_DYNAMIC ){ ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘valueFromExpr’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:75419:55: note: in expansion of macro ‘SQLITE_ DYNAMIC’ sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:75462:29: note: in expansion of macro ‘SQLITE_ DYNAMIC’ 0, SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘printfFunc’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:112292:25: note: in expansion of macro ‘SQLITE _DYNAMIC’ SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘generateColumnNames’: Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:125795:58: note: in expansion of macro ‘SQLITE _DYNAMIC’ sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c:14080:27: warning: cast between incompatible f unction types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-typ ]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite3/sqlite3.c:125802:52: note: in expansion of macro ‘SQLITE _DYNAMIC’ sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3InvokeBusyHandler’: Release/obj/gen/sqlite3/sqlite3.c:154305:12: warning: cast between incompatible function types from ‘int ()(void , int)’ to ‘int ()(void , int, sqlite3_fil e )’ {aka ‘int ()(void , int, struct sqlite3_file )’} [-Wcast-function-typ ] xTra = (int()(void,int,sqlite3_file))p->xBusyHandler; ^ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3_busy_timeout’: Release/obj/gen/sqlite3/sqlite3.c:154383:30: warning: cast between incompatible function types from ‘int ()(void , int, sqlite3_file )’ {aka ‘int ()(void , int, struct sqlite3_file )’} to ‘int ()(void , int)’ [-Wcast-function-typ ] sqlite3_busy_handler(db, (int()(void*,int))sqliteDefaultBusyCallback, ^ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3_db_status’: Release/obj/gen/sqlite3/sqlite3.c:20744:10: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] op = SQLITE_DBSTATUS_CACHE_WRITE+1;

Release/obj/gen/sqlite3/sqlite3.c:20746:5: note: here
     case SQLITE_DBSTATUS_CACHE_HIT:
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3_str_vappendf’:
Release/obj/gen/sqlite3/sqlite3.c:27452:19: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
         flag_long = sizeof(char*)==sizeof(i64) ? 2 :
         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      sizeof(char*)==sizeof(long int) ? 1 : 0;

Release/obj/gen/sqlite3/sqlite3.c:27455:7: note: here case etORDINAL: ^~~~ Release/obj/gen/sqlite3/sqlite3.c:27457:19: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] cThousand = 0;

Release/obj/gen/sqlite3/sqlite3.c:27459:7: note: here
       case etDECIMAL:
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3GetToken’:
Release/obj/gen/sqlite3/sqlite3.c:151968:9: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( !sqlite3Isdigit(z[1]) )
         ^
Release/obj/gen/sqlite3/sqlite3.c:151977:5: note: here
     case CC_DIGIT: {
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c:152067:9: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( z[1]=='\'' ){
         ^
Release/obj/gen/sqlite3/sqlite3.c:152081:5: note: here
     case CC_ID: {
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3ExprCodeTarget’:
Release/obj/gen/sqlite3/sqlite3.c:99485:25: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
     case TK_AGG_COLUMN: {
                         ^
Release/obj/gen/sqlite3/sqlite3.c:99498:5: note: here
     case TK_COLUMN: {
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘resolveP2Values’:
Release/obj/gen/sqlite3/sqlite3.c:76492:13: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
           if( pOp->p2!=0 ) p->readOnly = 0;
             ^
Release/obj/gen/sqlite3/sqlite3.c:76495:9: note: here
         case OP_AutoCommit:
         ^~~~
Release/obj/gen/sqlite3/sqlite3.c:76533:26: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
         case OP_VFilter: {
                          ^
Release/obj/gen/sqlite3/sqlite3.c:76542:9: note: here
         default: {
         ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘resolveExprStep’:
Release/obj/gen/sqlite3/sqlite3.c:95335:20: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
     case TK_ISNOT: {
                    ^
Release/obj/gen/sqlite3/sqlite3.c:95351:5: note: here
     case TK_BETWEEN:
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘impliesNotNullRow’:
Release/obj/gen/sqlite3/sqlite3.c:101026:8: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( (pExpr->pLeft->op==TK_COLUMN && IsVirtual(pExpr->pLeft->y.pTab))
    || (pExpr->pRight->op==TK_COLUMN && IsVirtual(pExpr->pRight->y.pTab))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Release/obj/gen/sqlite3/sqlite3.c:101030:5: note: here default: ^~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘fkActionTrigger’: Release/obj/gen/sqlite3/sqlite3.c:115395:11: warning: this statement may fall th rough [-Wimplicit-fallthrough=] if( !pChanges ){ ^ Release/obj/gen/sqlite3/sqlite3.c:115399:7: note: here default: ^~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3GenerateConstraintChecks’ : Release/obj/gen/sqlite3/sqlite3.c:117007:17: warning: this statement may fall th rough [-Wimplicit-fallthrough=] onError = OE_Abort; ^ Release/obj/gen/sqlite3/sqlite3.c:117010:7: note: here case OE_Rollback: ^~~~ Release/obj/gen/sqlite3/sqlite3.c:117070:9: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, 0, iDataCur); ^~~~~~~~~~~~~ Release/obj/gen/sqlite3/sqlite3.c:117074:7: note: here case OE_Ignore: { ^~~~ Release/obj/gen/sqlite3/sqlite3.c:117279:9: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, pIdx, iIdxCur+ix); ^~~~~~~~~~~~~~ Release/obj/gen/sqlite3/sqlite3.c:117283:7: note: here case OE_Ignore: { ^~~~ Release/obj/gen/sqlite3/sqlite3.c: In function ‘sqlite3VdbeExec’: Release/obj/gen/sqlite3/sqlite3.c:83912:5: warning: this statement may fall thro ugh [-Wimplicit-fallthrough=] if( (pIn3->flags & MEM_Null)==0 ) break; ^ Release/obj/gen/sqlite3/sqlite3.c:83946:1: note: here case OP_Halt: { ^~~~ Release/obj/gen/sqlite3/sqlite3.c:84079:5: warning: this statement may fall thro ugh [-Wimplicit-fallthrough=] if( pOp->p1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ ^ Release/obj/gen/sqlite3/sqlite3.c:84098:1: note: here case OP_String: { / out2 / ^~~~ Release/obj/gen/sqlite3/sqlite3.c:87148:19: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] case OP_IfNoHope: { / jump, in3 / ^ Release/obj/gen/sqlite3/sqlite3.c:87156:1: note: here case OP_NoConflict: / jump, in3 / ^~~~ Release/obj/gen/sqlite3/sqlite3.c:88084:38: warning: this statement may fall thr ough [-Wimplicit-fallthrough=] p->aCounter[SQLITE_STMTSTATUS_SORT]++;


Release/obj/gen/sqlite3/sqlite3.c:88103:1: note: here
 case OP_Rewind: {        /* jump */
 ^~~~
Release/obj/gen/sqlite3/sqlite3.c:89384:15: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
   pOp->opcode = OP_AggStep1;
               ^
Release/obj/gen/sqlite3/sqlite3.c:89387:1: note: here
 case OP_AggStep1: {
 ^~~~
Release/obj/gen/sqlite3/sqlite3.c:90249:15: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
   pOp->opcode += 2;
   ~~~~~~~~~~~~^~~~
Release/obj/gen/sqlite3/sqlite3.c:90252:1: note: here
 case OP_PureFunc:              /* group */
 ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘fts3SnippetFunc’:
Release/obj/gen/sqlite3/sqlite3.c:161934:22: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
     case 6: nToken = sqlite3_value_int(apVal[5]);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:161935:5: note: here
     case 5: iCol = sqlite3_value_int(apVal[4]);
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c:161935:20: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
     case 5: iCol = sqlite3_value_int(apVal[4]);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:161936:5: note: here
     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c:161936:38: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:161937:5: note: here
     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c:161937:33: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:161938:5: note: here
     case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘fts3ColumnMethod’:
Release/obj/gen/sqlite3/sqlite3.c:161691:14: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
         iCol = p->nColumn;
         ~~~~~^~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:161695:5: note: here
     default:
     ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘cellArea’:
Release/obj/gen/sqlite3/sqlite3.c:181083:22: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 5:  area  = p->aCoord[9].f - p->aCoord[8].f;
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181084:7: note: here
       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181084:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181085:7: note: here
       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181085:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181086:7: note: here
       case 2:  area *= p->aCoord[3].f - p->aCoord[2].f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181086:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 2:  area *= p->aCoord[3].f - p->aCoord[2].f;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181087:7: note: here
       default: area *= p->aCoord[1].f - p->aCoord[0].f;
       ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181093:22: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 5:  area  = p->aCoord[9].i - p->aCoord[8].i;
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181094:7: note: here
       case 4:  area *= p->aCoord[7].i - p->aCoord[6].i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181094:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 4:  area *= p->aCoord[7].i - p->aCoord[6].i;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181095:7: note: here
       case 3:  area *= p->aCoord[5].i - p->aCoord[4].i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181095:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 3:  area *= p->aCoord[5].i - p->aCoord[4].i;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181096:7: note: here
       case 2:  area *= p->aCoord[3].i - p->aCoord[2].i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:181096:21: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
       case 2:  area *= p->aCoord[3].i - p->aCoord[2].i;
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:181097:7: note: here
       default: area *= p->aCoord[1].i - p->aCoord[0].i;
       ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘rtreeCallbackConstraint’:
Release/obj/gen/sqlite3/sqlite3.c:180266:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+32, &c); aCoord[8] = c.f;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180267:7: note: here
       case 8:   readCoord(pCellData+28, &c); aCoord[7] = c.f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180268:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+24, &c); aCoord[6] = c.f;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180269:7: note: here
       case 6:   readCoord(pCellData+20, &c); aCoord[5] = c.f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180270:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+16, &c); aCoord[4] = c.f;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180271:7: note: here
       case 4:   readCoord(pCellData+12, &c); aCoord[3] = c.f;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180272:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+8,  &c); aCoord[2] = c.f;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180273:7: note: here
       default:  readCoord(pCellData+4,  &c); aCoord[1] = c.f;
       ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:180281:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+32, &c); aCoord[8] = c.i;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180282:7: note: here
       case 8:   readCoord(pCellData+28, &c); aCoord[7] = c.i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180283:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+24, &c); aCoord[6] = c.i;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180284:7: note: here
       case 6:   readCoord(pCellData+20, &c); aCoord[5] = c.i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180285:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+16, &c); aCoord[4] = c.i;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180286:7: note: here
       case 4:   readCoord(pCellData+12, &c); aCoord[3] = c.i;
       ^~~~
Release/obj/gen/sqlite3/sqlite3.c:180287:56: warning: this statement may fall th                                                                                        rough [-Wimplicit-fallthrough=]
                 readCoord(pCellData+8,  &c); aCoord[2] = c.i;
                                              ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite3/sqlite3.c:180288:7: note: here
       default:  readCoord(pCellData+4,  &c); aCoord[1] = c.i;
       ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘rtreeNonleafConstraint’:
Release/obj/gen/sqlite3/sqlite3.c:180340:9: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( p->op!=RTREE_EQ ) break;  /* RTREE_LE and RTREE_LT end here */
         ^
Release/obj/gen/sqlite3/sqlite3.c:180343:5: note: here
     default: /* RTREE_GT or RTREE_GE,  or fallthrough of RTREE_EQ */
     ^~~~~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘jsonRenderNode’:
Release/obj/gen/sqlite3/sqlite3.c:177040:9: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( pNode->jnFlags & JNODE_RAW ){
         ^
Release/obj/gen/sqlite3/sqlite3.c:177046:5: note: here
     case JSON_REAL:
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘jsonReturn’:
Release/obj/gen/sqlite3/sqlite3.c:177154:7: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       int_as_real: /* fall through to real */;
       ^~~~~~~~~~~
Release/obj/gen/sqlite3/sqlite3.c:177156:5: note: here
     case JSON_REAL: {
     ^~~~
Release/obj/gen/sqlite3/sqlite3.c: In function ‘jsonEachColumn’:
Release/obj/gen/sqlite3/sqlite3.c:178798:9: warning: this statement may fall thr                                                                                        ough [-Wimplicit-fallthrough=]
       if( p->bRecursive ){
         ^
Release/obj/gen/sqlite3/sqlite3.c:178808:5: note: here
     default: {
     ^~~~~~~

**it paused the install until I press CTRL + C and then it says Installation Complete...

but I can't even start the server. Always Error:**

root@isntapy:~/instapy-dashboard# npm start

instapy-dashboard@0.2.2 start /root/instapy-dashboard concurrently --kill-others-on-fail "react-scripts start" "npm run server"

[1] [1] > instapy-dashboard@0.2.2 server /root/instapy-dashboard [1] > node ./src/services/server.js [1] [1] /root/instapy-dashboard/node_modules/better-sqlite3/lib/database.js:31 [1] throw new TypeError('Cannot open database because the directory does not exist'); [1] ^ [1] [1] TypeError: Cannot open database because the directory does not exist [1] at new Database (/root/instapy-dashboard/node_modules/better-sqlite3/lib/database.js:31:9) [1] at Object. (/root/instapy-dashboard/src/services/server.js:9:12) [1] at Module._compile (internal/modules/cjs/loader.js:736:30) [1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10) [1] at Module.load (internal/modules/cjs/loader.js:628:32) [1] at tryModuleLoad (internal/modules/cjs/loader.js:568:12) [1] at Function.Module._load (internal/modules/cjs/loader.js:560:3) [1] at Function.Module.runMain (internal/modules/cjs/loader.js:801:12) [1] at executeUserCode (internal/bootstrap/node.js:526:15) [1] at startMainThreadExecution (internal/bootstrap/node.js:439:3) [1] npm ERR! code ELIFECYCLE [1] npm ERR! errno 1 [1] npm ERR! instapy-dashboard@0.2.2 server: node ./src/services/server.js [1] npm ERR! Exit status 1 [1] npm ERR! [1] npm ERR! Failed at the instapy-dashboard@0.2.2 server script. [1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [1] [1] npm ERR! A complete log of this run can be found in: [1] npm ERR! /root/.npm/_logs/2019-01-27T18_02_53_953Z-debug.log [1] npm run server exited with code 1 --> Sending SIGTERM to other processes.. [0] react-scripts start exited with code SIGTERM npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! instapy-dashboard@0.2.2 start: concurrently --kill-others-on-fail "react-scripts start" "npm run server" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the instapy-dashboard@0.2.2 start 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! /root/.npm/_logs/2019-01-27T18_02_54_023Z-debug.log

the logs says:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@6.5.0 3 info using node@v11.8.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle instapy-dashboard@0.2.2~prestart: instapy-dashboard@0.2.2 6 info lifecycle instapy-dashboard@0.2.2~start: instapy-dashboard@0.2.2 7 verbose lifecycle instapy-dashboard@0.2.2~start: unsafe-perm in lifecycle true 8 verbose lifecycle instapy-dashboard@0.2.2~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/instapy-dashboard/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 9 verbose lifecycle instapy-dashboard@0.2.2~start: CWD: /root/instapy-dashboard 10 silly lifecycle instapy-dashboard@0.2.2~start: Args: [ '-c', 10 silly lifecycle 'concurrently --kill-others-on-fail "react-scripts start" "npm run server"' ] 11 silly lifecycle instapy-dashboard@0.2.2~start: Returned: code: 1 signal: null 12 info lifecycle instapy-dashboard@0.2.2~start: Failed to exec start script 13 verbose stack Error: instapy-dashboard@0.2.2 start: concurrently --kill-others-on-fail "react-scripts start" "npm run server" 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:197:13) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:197:13) 13 verbose stack at maybeClose (internal/child_process.js:978:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) 14 verbose pkgid instapy-dashboard@0.2.2 15 verbose cwd /root/instapy-dashboard 16 verbose Linux 4.18.0-13-generic 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v11.8.0 19 verbose npm v6.5.0 20 error code ELIFECYCLE 21 error errno 1 22 error instapy-dashboard@0.2.2 start: concurrently --kill-others-on-fail "react-scripts start" "npm run server" 22 error Exit status 1 23 error Failed at the instapy-dashboard@0.2.2 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

converge commented 5 years ago

Hey @RaihanStark , sounds like an issue with the better-sqlite3,

what happens if you

  1. go to instapy-dashboard root folder
  2. node
  3. require('better-sqlite3')

if the output is something like:

> require('better-sqlite3')
{ [Function: Database]
  Integer:
   { [Function: Integer]
     fromString: [Function: fromString],
     fromNumber: [Function: fromNumber],
     fromBits: [Function: fromBits],
     isInstance: [Function: isInstance],
     MAX_VALUE: Integer { high: 2147483647, low: -1 },
     MIN_VALUE: Integer { high: -2147483648, low: 0 },
     ZERO: Integer { high: 0, low: 0 },
     ONE: Integer { high: 0, low: 1 },
     NEG_ONE: Integer { high: -1, low: -1 } },
  SqliteError: [Function: SqliteError] }

that means the better-sqlite3 is correctly installed if not, you should remove the node_modules folder and try to only install better-sqlite3 in this way:

npm i better-sqlite3

In case the better-sqlite3 is now corretly installed, run npm install command again

andreescocard commented 5 years ago

@converge tried the steps above, can't make it work on my environment

npm i better-sqlite3 integer@2.1.0 install /home/pi/instapy-dashboard/node_modules/integer node-gyp rebuild make ✖ ERR Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. better-sqlite3@5.4.0 install /home/pi/instapy-dashboard/node_modules/better-sqlite3 node-gyp rebuild make ✖ ERR Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. jss@9.8.7 postinstall /home/pi/instapy-dashboard/node_modules/jss node -e "console.log('\u001b[35m\u001b[1mLove JSS? You can now support us on open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/jss/donate\u001b[0m')" Love JSS? You can now support us on open collective: https://opencollective.com/jss/donate npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) better-sqlite3@5.4.0 added 2074 packages from 843 contributors and audited 36512 packages in 237.123s found 0 vulnerabilities

Opened several issues about this problem, no ideas about how to compile integer and better_sqlite3

converge commented 5 years ago

yes, better-sqlite3 is really a big issue for this project, fortunately, we have alternatives! I just updated the project and now we dont need better-sqlite3 neither node-sqlite to have it working 🥇

please, let me know if it fixes the issue for you.