williamhorning / bolt

a cross-platform chat bot connecting your communities
MIT License
36 stars 4 forks source link

Error with start bridge #24

Closed raymand211092 closed 1 year ago

raymand211092 commented 1 year ago

when execute node scripts/cli.js registerSlashCommands :

node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '/root/bolt/scripts/cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v19.9.0
williamhorning commented 1 year ago

Hey there @raymand211092, are you running the script while inside the bolt directory?

raymand211092 commented 1 year ago

Yes...i followed the steps:

root@srv112118-206152:~# cd bolt/
root@srv112118-206152:~/bolt# ls
app  changelog.md  docker-compose.yml  docs  legalese.md  LICENSE  node_modules  package.json  package-lock.json  README.md
root@srv112118-206152:~/bolt# node scripts/cli.js registerSlashCommands
node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '/root/bolt/scripts/cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v19.9.0
root@srv112118-206152:~/bolt#
williamhorning commented 1 year ago

@raymand211092 I don't think I can repro this locally, could you try to run Bolt using docker-compose and check to see if you still face the issue then?