palashkulsh/jira-cmd

Jira config returns error

Closed this issue · 6 comments

Running jira config for the first time returns:

TypeError: program.prompt is not a function
    at Object.ask (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/lib/auth.js:48:17)
    at Object.setConfig (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/lib/auth.js:69:14)
    at Command.<anonymous> (/Users/angelo/.config/yarn/global/node_modules/jira-cmd/bin/jira.js:374:14)
    at Command.listener [as _actionHandler] (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:922:31)
    at Command._parseCommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1503:14)
    at Command._dispatchSubcommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1443:18)
    at Command._parseCommand (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1460:12)
    at Command.parse (/Users/angelo/.config/yarn/global/node_modules/commander/index.js:1292:10)
    at /Users/angelo/.config/yarn/global/node_modules/jira-cmd/bin/jira.js:412:11
    at Object.execCb (/Users/angelo/.config/yarn/global/node_modules/requirejs/bin/r.js:1941:33)

@angelod1as can you please share node, npm or yarn version you are using.
operating system you are using?
and command you used to install jira-cmd
it will help in debugging

@palashkulsh sorry, my bad.

  • yarn 1.22.19
  • macOS 12.5 (21G72)
  • yarn global add jira-cmd

tested it with fresh installation, its working on my system : (

I removed it and re-installed it. Then, I do as the docs explain and run jira for the first time. Instead of login, it gives me:

~ ❯ jira                                            took  7s at  09:47:16
Usage: jira [options] [command]

Options:
  -V, --version                                       output the version number
  -h, --help                                          display help for command

Commands:
  ls [options]                                        List my issues
  start <issue>                                       Start working on an issue.
... (it shows the whole help output)

Is the docs misleading?

When I go to $HOME/.jira: cd: no such file or directory: /Users/angelo/.jira

If you are still facing the issue please feel free to reopen the issue, and we'll solve it together : ) .