Open ecashier-help opened 2 months ago
Hello there! As you are a first time Issuer please check whether your issue description is reasonable and complete. If you are having an issue always include the versions you are using (NodeJs, Typescript, ...) as well as a way to reproduce it. Thank you for reading! Now continue :)
Describe the bug Can't run with or without docker
To Reproduce
After that:
[INFO] 15:34:36 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.9.4) Error: The module '/home/sergeyb/telegram-support-bot-4.1.1/node_modules/better-sqlite3/build/Release/better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 108. This version of Node.js requires NODE_MODULE_VERSION 109. Please try re-compiling or re-installing the module (for instance, using (/home/sergeyb/telegram-support-bot-4.1.1/src/db.ts:2:12)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
[ERROR] 15:34:38 Error: The module '/home/sergeyb/telegram-support-bot-4.1.1/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 108. This version of Node.js requires
NODE_MODULE_VERSION 109. Please try re-compiling or re-installing
the module (for instance, using
npm rebuild
ornpm install
). at Module._extensions..node (node:internal/modules/cjs/loader:1452:18) at Object.nodeDevHook [as .node] (/home/sergeyb/telegram-support-bot-4.1.1/node_modules/ts-node-dev/lib/hook.js:63:13) at Module.load (node:internal/modules/cjs/loader:1197:32) at Function.Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at bindings (/home/sergeyb/telegram-support-bot-4.1.1/node_modules/bindings/bindings.js:112:48) at new Database (/home/sergeyb/telegram-support-bot-4.1.1/node_modules/better-sqlite3/lib/database.js:48:64) at Object.npm rebuild
ornpm install
).supportbot-1 | supportbot-1 | > telegram-support-bot@4.0.0 prod supportbot-1 | > ts-node ./src/index.ts supportbot-1 | supportbot-1 | Error: ENOENT: no such file or directory, open './config/config.yaml' supportbot-1 | at Object.openSync (node:fs:599:3) supportbot-1 | at Object.readFileSync (node:fs:467:35) supportbot-1 | at Object. (/bot/src/cache.ts:20:6)
supportbot-1 | at Module._compile (node:internal/modules/cjs/loader:1112:14)
supportbot-1 | at Module.m._compile (/bot/node_modules/ts-node/src/index.ts:1618:23)
supportbot-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
supportbot-1 | at Object.require.extensions. [as .ts] (/bot/node_modules/ts-node/src/index.ts:1621:12)
supportbot-1 | at Module.load (node:internal/modules/cjs/loader:988:32)
supportbot-1 | at Function.Module._load (node:internal/modules/cjs/loader:834:12)
supportbot-1 | at Module.require (node:internal/modules/cjs/loader:1012:19) {
supportbot-1 | errno: -2,
supportbot-1 | syscall: 'open',
supportbot-1 | code: 'ENOENT',
supportbot-1 | path: './config/config.yaml'
supportbot-1 | }
supportbot-1 |
supportbot-1 | > telegram-support-bot@4.0.0 prod
supportbot-1 | > ts-node ./src/index.ts
supportbot-1 |
supportbot-1 | Error: ENOENT: no such file or directory, open './config/config.yaml'
supportbot-1 | at Object.openSync (node:fs:599:3)
supportbot-1 | at Object.readFileSync (node:fs:467:35)
supportbot-1 | at Object. (/bot/src/cache.ts:20:6)
supportbot-1 | at Module._compile (node:internal/modules/cjs/loader:1112:14)
supportbot-1 | at Module.m._compile (/bot/node_modules/ts-node/src/index.ts:1618:23)
supportbot-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
supportbot-1 | at Object.require.extensions. [as .ts] (/bot/node_modules/ts-node/src/index.ts:1621:12)
supportbot-1 | at Module.load (node:internal/modules/cjs/loader:988:32)
supportbot-1 | at Function.Module._load (node:internal/modules/cjs/loader:834:12)
supportbot-1 | at Module.require (node:internal/modules/cjs/loader:1012:19) {
supportbot-1 | errno: -2,
supportbot-1 | syscall: 'open',
supportbot-1 | code: 'ENOENT',
supportbot-1 | path: './config/config.yaml'
supportbot-1 | }
supportbot-1 |
supportbot-1 | > telegram-support-bot@4.0.0 prod
supportbot-1 | > ts-node ./src/index.ts
supportbot-1 |
supportbot-1 | Error: ENOENT: no such file or directory, open './config/config.yaml'
supportbot-1 | at Object.openSync (node:fs:599:3)
supportbot-1 | at Object.readFileSync (node:fs:467:35)
supportbot-1 | at Object. (/bot/src/cache.ts:20:6)
supportbot-1 | at Module._compile (node:internal/modules/cjs/loader:1112:14)
supportbot-1 | at Module.m._compile (/bot/node_modules/ts-node/src/index.ts:1618:23)
supportbot-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
supportbot-1 | at Object.require.extensions. [as .ts] (/bot/node_modules/ts-node/src/index.ts:1621:12)
supportbot-1 | at Module.load (node:internal/modules/cjs/loader:988:32)
supportbot-1 | at Function.Module._load (node:internal/modules/cjs/loader:834:12)
supportbot-1 | at Module.require (node:internal/modules/cjs/loader:1012:19) {
supportbot-1 | errno: -2,
supportbot-1 | syscall: 'open',
supportbot-1 | code: 'ENOENT',
supportbot-1 | path: './config/config.yaml'
supportbot-1 | }
supportbot-1 |
supportbot-1 | > telegram-support-bot@4.0.0 prod
supportbot-1 | > ts-node ./src/index.ts
supportbot-1 |
supportbot-1 | Error: ENOENT: no such file or directory, open './config/config.yaml'
supportbot-1 | at Object.openSync (node:fs:599:3)
supportbot-1 | at Object.readFileSync (node:fs:467:35)
supportbot-1 | at Object. (/bot/src/cache.ts:20:6)
supportbot-1 | at Module._compile (node:internal/modules/cjs/loader:1112:14)
supportbot-1 | at Module.m._compile (/bot/node_modules/ts-node/src/index.ts:1618:23)
supportbot-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
supportbot-1 | at Object.require.extensions. [as .ts] (/bot/node_modules/ts-node/src/index.ts:1621:12)
supportbot-1 | at Module.load (node:internal/modules/cjs/loader:988:32)
supportbot-1 | at Function.Module._load (node:internal/modules/cjs/loader:834:12)
supportbot-1 | at Module.require (node:internal/modules/cjs/loader:1012:19) {
supportbot-1 | errno: -2,
supportbot-1 | syscall: 'open',
supportbot-1 | code: 'ENOENT',
supportbot-1 | path: './config/config.yaml'
supportbot-1 | }
supportbot-1 |
supportbot-1 | > telegram-support-bot@4.0.0 prod
supportbot-1 | > ts-node ./src/index.ts
supportbot-1 |
supportbot-1 | Error: ENOENT: no such file or directory, open './config/config.yaml'
supportbot-1 | at Object.openSync (node:fs:599:3)
supportbot-1 | at Object.readFileSync (node:fs:467:35)
supportbot-1 | at Object. (/bot/src/cache.ts:20:6)
supportbot-1 | at Module._compile (node:internal/modules/cjs/loader:1112:14)
supportbot-1 | at Module.m._compile (/bot/node_modules/ts-node/src/index.ts:1618:23)
supportbot-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
supportbot-1 | at Object.require.extensions. [as .ts] (/bot/node_modules/ts-node/src/index.ts:1621:12)
supportbot-1 | at Module.load (node:internal/modules/cjs/loader:988:32)
supportbot-1 | at Function.Module._load (node:internal/modules/cjs/loader:834:12)
supportbot-1 | at Module.require (node:internal/modules/cjs/loader:1012:19) {
supportbot-1 | errno: -2,
supportbot-1 | syscall: 'open',
supportbot-1 | code: 'ENOENT',
supportbot-1 | path: './config/config.yaml'
supportbot-1 | }
supportbot-1 |
supportbot-1 | > telegram-support-bot@4.0.0 prod
supportbot-1 | > ts-node ./src/index.ts
supportbot-1 |
[~/telegram-support-bot-4.1.1]$ nvm list node v13.14.0 -> v14.21.3 system [~/telegram-support-bot-4.1.1]$ nvm deactivate /home/sergeyb/.nvm/*/bin removed from ${PATH} [~/telegram-support-bot-4.1.1]$ node -v v18.19.1