Skip to content

HELP! cncjs-pendant-gamepad.js: No such file or directory #13

@jamhot1

Description

@jamhot1

would really appreciate some help getting this setup. loaded CNCJS onto a RPI lite os version. have managed to setup SIXAD bluetooth but for some reason, after I install the gamepad and run I get no file or directory found errors, see below. I have limited experience with linux and have tried different versions of node (16 currently) still no ball. I will add that the install appears to go without errors apart from some vulnerabilities. I must be missing something crucial to get this going. I just don't have enough knowledge of linux to figure this out.

bin/cncjs-pendant-gamepad.js -p /dev/ttyUSB0 -b 115200 -t grbl --so cket-port 80
-bash: bin/cncjs-pendant-gamepad.js: No such file or directory
pi@cncjs:~ $ cncjs-pendant-gamepad/bin/cncjs-pendant-gamepad.js -p /dev/ttyUSB0 -b 115200 -t grbl --socket-port 80
WARN CLI Error: ENOENT: no such file or directory, open '/etc/cncjs-pendan t-gamepad.rc.json'
WARN CLI at Object.openSync (node:fs:590:3)
WARN CLI at Object.readFileSync (node:fs:458:35)
WARN CLI at loadOptionsFile (file:///home/pi/cncjs-pendant-gamepad/lib /console.js:57:28)
WARN CLI at getFileOptions (file:///home/pi/cncjs-pendant-gamepad/lib/ console.js:75:26)
WARN CLI at startCLI (file:///home/pi/cncjs-pendant-gamepad/lib/consol e.js:23:46)
WARN CLI at file:///home/pi/cncjs-pendant-gamepad/bin/cncjs-pendant-ga mepad.js:12:1
WARN CLI at ModuleJob.run (node:internal/modules/esm/module_job:193:25 )
WARN CLI at async Promise.all (index 0)
WARN CLI at async ESMLoader.import (node:internal/modules/esm/loader:5 30:24)
WARN CLI at async loadESM (node:internal/process/esm_loader:91:5)
WARN CLI Error: ENOENT: no such file or directory, open '/etc/cncjs-penda nt-gamepad.rc.json'
WARN CLI at Object.openSync (node:fs:590:3)
WARN CLI at Object.readFileSync (node:fs:458:35)
WARN CLI at loadOptionsFile (file:///home/pi/cncjs-pendant-gamepad/lib /console.js:57:28)
WARN CLI at getFileOptions (file:///home/pi/cncjs-pendant-gamepad/lib/ console.js:75:26)
WARN CLI at startCLI (file:///home/pi/cncjs-pendant-gamepad/lib/consol e.js:23:46)
WARN CLI at file:///home/pi/cncjs-pendant-gamepad/bin/cncjs-pendant-ga mepad.js:12:1
WARN CLI at ModuleJob.run (node:internal/modules/esm/module_job:193:25 )
WARN CLI at async Promise.all (index 0)
WARN CLI at async ESMLoader.import (node:internal/modules/esm/loader:5 30:24)
WARN CLI at async loadESM (node:internal/process/esm_loader:91:5) {
WARN CLI errno: -2,
WARN CLI syscall: 'open',
WARN CLI code: 'ENOENT',
WARN CLI path: '/etc/cncjs-pendant-gamepad.rc.json'
WARN CLI }
WARN CLI Error: ENOENT: no such file or directory, open '/home/pi/.cncjs-p endant-gamepad.rc.json'
WARN CLI at Object.openSync (node:fs:590:3)
WARN CLI at Object.readFileSync (node:fs:458:35)
WARN CLI at loadOptionsFile (file:///home/pi/cncjs-pendant-gamepad/lib /console.js:57:28)
WARN CLI at getFileOptions (file:///home/pi/cncjs-pendant-gamepad/lib/ console.js:76:26)
WARN CLI at startCLI (file:///home/pi/cncjs-pendant-gamepad/lib/consol e.js:23:46)
WARN CLI at file:///home/pi/cncjs-pendant-gamepad/bin/cncjs-pendant-ga mepad.js:12:1
WARN CLI at ModuleJob.run (node:internal/modules/esm/module_job:193:25 )
WARN CLI at async Promise.all (index 0)
WARN CLI at async ESMLoader.import (node:internal/modules/esm/loader:5 30:24)
WARN CLI at async loadESM (node:internal/process/esm_loader:91:5)
WARN CLI Error: ENOENT: no such file or directory, open '/home/pi/.cncjs- pendant-gamepad.rc.json'
WARN CLI at Object.openSync (node:fs:590:3)
WARN CLI at Object.readFileSync (node:fs:458:35)
WARN CLI at loadOptionsFile (file:///home/pi/cncjs-pendant-gamepad/lib /console.js:57:28)
WARN CLI at getFileOptions (file:///home/pi/cncjs-pendant-gamepad/lib/ console.js:76:26)
WARN CLI at startCLI (file:///home/pi/cncjs-pendant-gamepad/lib/consol e.js:23:46)
WARN CLI at file:///home/pi/cncjs-pendant-gamepad/bin/cncjs-pendant-ga mepad.js:12:1
WARN CLI at ModuleJob.run (node:internal/modules/esm/module_job:193:25 )
WARN CLI at async Promise.all (index 0)
WARN CLI at async ESMLoader.import (node:internal/modules/esm/loader:5 30:24)
WARN CLI at async loadESM (node:internal/process/esm_loader:91:5) {
WARN CLI errno: -2,
WARN CLI syscall: 'open',
WARN CLI code: 'ENOENT',
WARN CLI path: '/home/pi/.cncjs-pendant-gamepad.rc.json'
WARN CLI }
cncjs-pendant-gamepad is currently running. Stop running with Control-C
Use 'cncjs-pendant-gamepad --help' if you're expecting to see something else her e.
file:///home/pi/cncjs-pendant-gamepad/lib/connector.js:117
this.socket.on(msg, callback);
^

TypeError: Cannot read properties of undefined (reading 'on')
at Connector.subscribeMessage (file:///home/pi/cncjs-pendant-gamepad/lib/con nector.js:117:25)
at new GcodeGrbl (file:///home/pi/cncjs-pendant-gamepad/lib/gcode-grbl.js:7: 24)
at Actions.newGcodeSender (file:///home/pi/cncjs-pendant-gamepad/lib/actions .js:51:16)
at new Actions (file:///home/pi/cncjs-pendant-gamepad/lib/actions.js:34:33)
at startCLI (file:///home/pi/cncjs-pendant-gamepad/lib/console.js:32:5)
at file:///home/pi/cncjs-pendant-gamepad/bin/cncjs-pendant-gamepad.js:12:1
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions