fotingo icon indicating copy to clipboard operation
fotingo copied to clipboard

I'm having trouble getting fotingo to work on the new M1 Machine

Open tenthyoung opened this issue 2 years ago • 0 comments

Expected result: When I run fotingo review, I expect it to work properly

Actual result:

➜  schumacher git:(f/schu-10551_add_translated_schedule_summary_from_backend_in_message_templates_view) ✗ fotingo review          
/usr/local/lib/node_modules/fotingo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: dlopen(/usr/local/lib/node_modules/fotingo/node_modules/better-sqlite3/build/Release/better_sqlite3.node, 0x0001): tried: '/usr/local/lib/node_modules/fotingo/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/better_sqlite3.node' (no such file), '/usr/lib/better_sqlite3.node' (no such file)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at bindings (/usr/local/lib/node_modules/fotingo/node_modules/bindings/bindings.js:112:48)
    at new Database (/usr/local/lib/node_modules/fotingo/node_modules/better-sqlite3/lib/database.js:48:64)
    at new KeyvSqlite (/usr/local/lib/node_modules/fotingo/node_modules/@keyv/sqlite/src/index.js:29:14)
    at loadStore (/usr/local/lib/node_modules/fotingo/node_modules/keyv/src/index.js:24:10)
    at new Keyv (/usr/local/lib/node_modules/fotingo/node_modules/keyv/src/index.js:45:22)
Emitted 'error' event on Keyv instance at:
    at KeyvSqlite.<anonymous> (/usr/local/lib/node_modules/fotingo/node_modules/keyv/src/index.js:49:46)
    at KeyvSqlite.emit (events.js:400:28)
    at Immediate.<anonymous> (/usr/local/lib/node_modules/fotingo/node_modules/@keyv/sqlite/src/index.js:32:28)
    at processImmediate (internal/timers.js:464:21) {
  code: 'ERR_DLOPEN_FAILED'
}

tenthyoung avatar Mar 09 '22 20:03 tenthyoung