Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sterben667 opened this issue Mar 22, 2023 · 1 comment

Comments

@Sterben667
Copy link

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 Sterben667 changed the title Error: ENOENT: no such file or directory, open '/home/sterben/.config/gpt-cli/.gptrc' Error: ENOENT: no such file or directory, open '/home/user/.config/gpt-cli/.gptrc' Mar 22, 2023
@JohannLai
Copy link
Owner

hi @Sterben667 thanks for install it.

what system are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants