minddocdev / hubot

Hubot 3 in docker
13 stars 17 forks source link

docker image hubot-redis-brain issue #2

Open nabad600 opened 1 year ago

nabad600 commented 1 year ago

Hi, Please update nodejs and npm version in docker image tag: 3.3.2, The error given below

root@ip-172-31-41-74:~# docker run -ti minddocdev/hubot:3.3.2 sh

********* Installing packages from external-scripts.json *********
[..................] - loadDep:vary: sill resolveWithNewModule express-basic-au
+ hubot-diagnostics@1.2.0
+ hubot-help@1.1.1
+ hubot-rules@1.0.0
+ hubot-redis-brain@1.1.6
added 335 packages from 192 contributors, removed 3 packages, updated 5 packages and audited 483 packages in 61.829s
found 15 vulnerabilities (6 moderate, 8 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

****************** Starting robot (Hubot 3.3.2) ******************
audited 483 packages in 3.944s
found 15 vulnerabilities (6 moderate, 8 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

   ╭───────────────────────────────────────────────────────────────╮
   │                                                               │
   │      New major version of npm available! 6.9.0 -> 9.8.1       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v9.8.1   │
   │               Run npm install -g npm to update!               │
   │                                                               │
   ╰───────────────────────────────────────────────────────────────╯

No history available
robot> 
robot> [Tue Aug 29 2023 17:14:06 GMT+0000 (Coordinated Universal Time)] ERROR Unable to load /home/hubot/node_modules/hubot-redis-brain/src/redis-brain: /home/hubot/node_modules/hubot-redis-brain/src/redis-brain.js:42
      prefix = info.search?.replace('?', '') || 'hubot'
                           ^

SyntaxError: Unexpected token .
  at Module._compile (internal/modules/cjs/loader.js:723:23)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  at Module.load (/home/hubot/node_modules/coffeescript/lib/coffee-script/coffee-script.js:211:36)
  at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  at Module.require (internal/modules/cjs/loader.js:692:17)
  at require (internal/modules/cjs/helpers.js:25:18)
  at Robot.loadFile (/home/hubot/node_modules/hubot/src/robot.js:360:22)
  at module.exports (/home/hubot/node_modules/hubot-redis-brain/index.js:7:9)
  at packages.forEach.pkg (/home/hubot/node_modules/hubot/src/robot.js:409:52)
  at Array.forEach (<anonymous>:null:null)
  at Robot.loadExternalScripts (/home/hubot/node_modules/hubot/src/robot.js:409:25)
  at /home/hubot/node_modules/hubot/bin/hubot.js:207:13
  at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
ndas198 commented 1 year ago

Hi, Any update?