gptcli icon indicating copy to clipboard operation
gptcli copied to clipboard

Error: ENOENT: no such file or directory, open '/home/user/.config/gpt-cli/.gptrc'

Open Sterben667 opened this issue 3 years ago • 1 comments

When i install gptcli, i have this issue : node:fs:600 handleErrorFromBinding(ctx); ^

Error: ENOENT: no such file or directory, open '/home//.config/gpt-cli/.gptrc' at Object.openSync (node:fs:600:3) at Object.readFileSync (node:fs:468:35) at b (file:///usr/local/lib/node_modules/@johannlai/gptcli/dist/cli.mjs:2:390) at K (file:///usr/local/lib/node_modules/@johannlai/gptcli/dist/cli.mjs:2:494) at file:///usr/local/lib/node_modules/@johannlai/gptcli/dist/cli.mjs:16:230 { errno: -2, syscall: 'open', code: 'ENOENT', path: '/home//.config/gpt-cli/.gptrc' }

i fixed it with create gpt-cli dir in .config and .gptrc file.

mkdir ~/.config/gpt-cli && touch .config/gpt-cli/.gptrc

Sterben667 avatar Mar 22 '23 18:03 Sterben667

hi @Sterben667 thanks for install it.

what system are you using?

JohannLai avatar Mar 23 '23 00:03 JohannLai