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

Install the package fail when use the root in centos #4

Open
k-water opened this issue Mar 21, 2023 · 0 comments
Open

Install the package fail when use the root in centos #4

k-water opened this issue Mar 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@k-water
Copy link

k-water commented Mar 21, 2023

cmd: sudo npm install -g @johannlai/gptcli

npm ERR! code 1
npm ERR! path /usr/local/node16/lib/node_modules/@johannlai/gptcli
npm ERR! command failed
npm ERR! command sh -c node scripts/createConfig.js
npm ERR! node:fs:1349
npm ERR!   handleErrorFromBinding(ctx);
npm ERR!   ^
npm ERR! 
npm ERR! Error: EACCES: permission denied, mkdir '/root/.config/gpt-cli'
npm ERR!     at Object.mkdirSync (node:fs:1349:3)
npm ERR!     at file:///usr/local/node16/lib/node_modules/@johannlai/gptcli/scripts/createConfig.js:12:6
npm ERR!     at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
npm ERR!     at async Promise.all (index 0)
npm ERR!     at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
npm ERR!     at async loadESM (node:internal/process/esm_loader:88:5)
npm ERR!     at async handleMainPromise (node:internal/modules/run_main:61:12) {
npm ERR!   errno: -13,
npm ERR!   syscall: 'mkdir',
npm ERR!   code: 'EACCES',
npm ERR!   path: '/root/.config/gpt-cli'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-03-21T08_34_26_841Z-debug-0.log
@JohannLai JohannLai self-assigned this Mar 21, 2023
@JohannLai JohannLai added the bug Something isn't working label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants