JohannLai / gptcli

🔥 All in one ChatGPT CLI, build your own AI cli tools just like GitHub Actions workflow gptcli. 内置 AI commmit(自动生成 commit message)、AI Command(自然语言转命令行)、翻译、gitmoji 等插件。秒级创建任意自定义 ChatGPT CLI 工具,就像创建一个 GitHub Actions 这么简单,让 AI 帮助我们链接自然语言和结构化数据。
https://www.gptcli.com
MIT License
255 stars 13 forks source link

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

Open Sterben667 opened 1 year ago

Sterben667 commented 1 year ago

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

JohannLai commented 1 year ago

hi @Sterben667 thanks for install it.

what system are you using?