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

[Bug]: vonage config:set fails with ENOENT #133

Open
gfx opened this issue Jan 16, 2025 · 0 comments
Open

[Bug]: vonage config:set fails with ENOENT #133

gfx opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gfx
Copy link

gfx commented Jan 16, 2025

Node Version

22.x

Platform

Mac (Apple Silcon)

CLI Version

3.0.2

Command

$ vonage config:set --apiKey=XXXX --apiSecret=YYYY
Error: (node:69427) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:fs:2344
    return binding.writeFileUtf8(
                   ^

Error: ENOENT: no such file or directory, open '/Users/goro/.vonage/settings.json'
    at writeFileSync (node:fs:2344:20)
    at saveSettingsFile (/Users/goro/.nvm/versions/node/v22.12.0/lib/node_modules/@vonage/cli/src/utils/settings.js:32:3)
    at process.<anonymous> (/Users/goro/.nvm/versions/node/v22.12.0/lib/node_modules/@vonage/cli/src/utils/settings.js:9:5)
    at process.emit (node:events:536:35) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/goro/.vonage/settings.json'
}

It's simply be fixed by mkdir ~/.vonage.

Expected Behavior

No error was thrown.

Actual Behavior

Error ENOENT was thrown.

@gfx gfx added the bug Something isn't working label Jan 16, 2025
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

4 participants