Open
Description
When executing auth
with npx on the latest release on a new machine (not authenticated yet), I get the following error:
❯ npx copilot-api@latest auth
Need to install the following packages:
copilot-api@0.2.2
Ok to proceed? (y) y
[error] Failed to get GitHub token: ENOENT: no such file or directory, open '/home/filip/.local/share/copilot-api/github_token'
at async open (node:internal/fs/promises:639:25)
at async Object.readFile (node:internal/fs/promises:1246:14)
at async k (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:2:3267)
at async le (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:2:3848)
at async runCommand (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:316:16)
at async runCommand (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:307:11)
at async runMain (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:445:7)
at async /home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:4:5305
[error] ENOENT: no such file or directory, open '/home/filip/.local/share/copilot-api/github_token'
at async open (node:internal/fs/promises:639:25)
at async Object.readFile (node:internal/fs/promises:1246:14)
at async k (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:2:3267)
at async le (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:2:3848)
at async runCommand (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:316:16)
at async runCommand (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:307:11)
at async runMain (/home/filip/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:445:7)
at async /home/filip/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:4:5305
[error] ENOENT: no such file or directory, open '/home/filip/.local/share/copilot-api/github_token'
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.3.0
npm notice To update run: npm install -g npm@11.3.0
npm notice
Metadata
Metadata
Assignees
Labels
No labels